For rails 5.2, the accepted answer has been deleted and replaced with
ActiveRecord::MigrationContext.new("db/migrate").migrate
Remember that this may change for future versions of rails, as they work to add multiple database connections.
gssbzn Oct 10 '18 at 11:18 2018-10-10 11:18
source share