Module | Mack::Database::Migrations |
In: |
lib/mack-active_record/database_migrations.rb
|
Not implemented
# File lib/mack-active_record/database_migrations.rb, line 19 19: def self.abort_if_pending_migrations 20: end
Rolls back the database by the specified number of steps. Default is 1
# File lib/mack-active_record/database_migrations.rb, line 11 11: def self.rollback(step = 1) 12: cur_version = version.to_i 13: target_version = cur_version - step 14: target_version = 0 if target_version < 0 15: ActiveRecord::Migrator.down(Mack::Paths.db("migrations"), target_version) 16: end