class DataMigrate::MigrationFive
Public Class Methods
check_pending!(connection = ::ActiveRecord::Base.connection)
click to toggle source
# File lib/data_migrate/migration_five.rb, line 5 def check_pending!(connection = ::ActiveRecord::Base.connection) raise ActiveRecord::PendingMigrationError if DataMigrator::Migrator.needs_migration?(connection) end
index_name()
click to toggle source
# File lib/data_migrate/migration_five.rb, line 17 def index_name "#{table_name_prefix}unique_data_migrations#{table_name_suffix}" end
migrate(direction)
click to toggle source
# File lib/data_migrate/migration_five.rb, line 9 def migrate(direction) new.migrate direction end
new(name = self.class.name, version = nil)
click to toggle source
Calls superclass method
# File lib/data_migrate/migration_five.rb, line 22 def initialize(name = self.class.name, version = nil) super(name, version) end
table_name()
click to toggle source
# File lib/data_migrate/migration_five.rb, line 13 def table_name ActiveRecord::Base.table_name_prefix + 'data_migrations' + ActiveRecord::Base.table_name_suffix end