Sha256: a7c3d4afcc9ceda63428a1cd86179cf842f106ad6d2b474da40c378a3181f2bf
Contents?: true
Size: 639 Bytes
Versions: 9
Compression:
Stored size: 639 Bytes
Contents
module DataMigrate class Migration < ::ActiveRecord::Migration class << self def check_pending!(connection = ::ActiveRecord::Base.connection) raise ActiveRecord::PendingMigrationError if DataMigrator::Migrator.needs_migration?(connection) end def migrate(direction) new.migrate direction end def table_name ActiveRecord::Base.table_name_prefix + "data_migrations" + ActiveRecord::Base.table_name_suffix end def primary_key "version" end end def initialize(name = self.class.name, version = nil) super(name, version) end end end
Version data entries
9 entries across 9 versions & 1 rubygems