Skip to content

Instantly share code, notes, and snippets.

@mehlah
Created December 27, 2014 21:16
Show Gist options
  • Save mehlah/73e9346121e689e9c5d7 to your computer and use it in GitHub Desktop.
Save mehlah/73e9346121e689e9c5d7 to your computer and use it in GitHub Desktop.
module EngineWithMigrations
class Engine < ::Rails::Engine
isolate_namespace EngineWithMigrations
initializer :append_migrations do |app|
unless app.root.to_s.match root.to_s
app.config.paths['db/migrate'] += config.paths['db/migrate'].expanded
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment