lib/heart/engine.rb in heart-0.0.1.pre vs lib/heart/engine.rb in heart-0.0.1

- old
+ new

@@ -4,10 +4,10 @@ # Run migrations from inside the rails engine # instead of copying to app with heart:install:migrations initializer :append_migrations do |app| # support migration files from metric fetch definition directories in root app lib/fetch - config.paths['db/migrate'] << 'lib/fetch' + app.config.paths['db/migrate'] << 'lib/heart' # also support migration files inside engine db/migrate directories unless app.root.to_s.match root.to_s if Rails.version.match /\A3\..*\z/ app.config.paths["db/migrate"] += config.paths["db/migrate"].expanded elsif Rails.version.match /\A4\..*\z/