Ignore

Please note that your browser is not supported.

We recommend upgrading to the latest Firefox or Google Chrome.

Configuration: Data

Pakyow provides the following environment config options for data:

  • data.silent: If true, logging is disabled across all data sources. Default: true

  • data.auto_migrate: If true, data sources will be auto migrated on boot. Default: true; false in production

  • data.auto_migrate_always: Array of connection names that will always be auto migrated. Default: [:memory]

  • data.default_adapter: Name of the adapter to use when unspecified in a data source. Default: :sql

  • data.default_connection: Name of the connection to use when unspecified in a data source. Default: :default

  • data.migration_path: Where database migration files live. Default: "{root}/database/migrations"

Subscriptions

Pakyow provides the following environment config options for data subscriptions:

Example Usage

Data config lives in config/environment.rb:

Pakyow.configure do
  config.data.option = value
end
Next Up: Mailer