test/dummy_apps/rails_four/init.rb in secondbase-2.0.0 vs test/dummy_apps/rails_four/init.rb in secondbase-2.1.0
- old
+ new
@@ -31,10 +31,12 @@
# Keep pending test:prepare via pending migrations from running.
config.active_record.maintain_test_schema = false if ActiveRecord::Base.respond_to?(:maintain_test_schema)
config.active_record.schema_format = ENV['SCHEMA_FORMAT'] ? :sql : :ruby
-
+ if ENV['WITH_SECONDBASE_TASKS'].present?
+ config.second_base.run_with_db_tasks = ENV['WITH_SECONDBASE_TASKS'] == 'true'
+ end
end
end
Dummy::Application.initialize!