lib/bjond-app/engine.rb in bjond-api-0.0.2 vs lib/bjond-app/engine.rb in bjond-api-0.0.3

- old
+ new

@@ -1,4 +1,11 @@ module BjondApi class Engine < ::Rails::Engine + initializer :append_migrations do |app| + unless app.root.to_s.match root.to_s + config.paths["db/migrate"].expanded.each do |expanded_path| + app.config.paths["db/migrate"] << expanded_path + end + end + end end end \ No newline at end of file