require "rails" module CanvasSync class Engine < ::Rails::Engine isolate_namespace CanvasSync initializer :append_migrations do |app| config.paths["db/migrate"].expanded.each do |expanded_path| app.config.paths["db/migrate"] << expanded_path end # Apartment will modify this, but it doesn't fully support engine migrations, so we'll reset it here ActiveRecord::Migrator.migrations_paths = Rails.application.paths["db/migrate"].to_a end end end