lib/ecom/model/engine.rb in ecom_model-2.0.0 vs lib/ecom/model/engine.rb in ecom_model-2.0.1
- old
+ new
@@ -12,8 +12,14 @@
initializer 'ecom_model.factories', after: 'factory_bot.set_factory_paths' do
FactoryBot.definition_file_paths << File.expand_path('../../spec/factories', __dir__) if defined?(FactoryBot)
end
+ initializer :append_migrations do |app|
+ unless app.root.to_s.match(root.to_s + File::SEPARATOR)
+ app.config.paths['db/migrate'].concat(config.paths['db/migrate'].expanded)
+ end
+ end
+
end
end
end