Question : Rails Migration error
Answered by : crowded-camel-1ca1ori91d1e
# Raises <tt>ActiveRecord::PendingMigrationError</tt> error if any migrations are pending. def check_pending!(connection = Base.connection) raise ActiveRecord::PendingMigrationError if connection.migration_context.needs_migration? end def load_schema_if_pending!
Source : | Last Update : Mon, 23 Aug 21