Sha256: d947d8a6c5a09f8624b819816e222aca5ee296c8eacf2d60c83b12a74ef31c63

Contents?: true

Size: 702 Bytes

Versions: 26

Compression:

Stored size: 702 Bytes

Contents

module DataMigrate
  class MigrationFive < ::ActiveRecord::Migration[5.0]

    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 index_name
        "#{table_name_prefix}unique_data_migrations#{table_name_suffix}"
      end
    end

    def initialize(name = self.class.name, version = nil)
      super(name, version)
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
data_migrate-6.3.0 lib/data_migrate/migration_five.rb
data_migrate-6.2.0 lib/data_migrate/migration_five.rb
data_migrate-6.1.0 lib/data_migrate/migration_five.rb
data_migrate-6.0.7 lib/data_migrate/migration_five.rb
data_migrate-6.0.6 lib/data_migrate/migration_five.rb
data_migrate-6.0.5 lib/data_migrate/migration_five.rb
data_migrate-6.0.4.beta lib/data_migrate/migration_five.rb
data_migrate-6.0.3.beta lib/data_migrate/migration_five.rb
data_migrate-6.0.1.beta lib/data_migrate/migration_five.rb
data_migrate-6.0.0.beta lib/data_migrate/migration_five.rb
data_migrate-5.3.2 lib/data_migrate/migration_five.rb
data_migrate-5.3.1 lib/data_migrate/migration_five.rb
data_migrate-5.3.0 lib/data_migrate/migration_five.rb
data_migrate-5.2.0 lib/data_migrate/migration_five.rb
data_migrate-5.1.0 lib/data_migrate/migration_five.rb
data_migrate-5.0.2 lib/data_migrate/migration_five.rb
data_migrate-5.0.0 lib/data_migrate/migration_five.rb
data_migrate-4.0.0 lib/data_migrate/migration_five.rb
data_migrate-3.5.0 lib/data_migrate/migration_five.rb
data_migrate-3.4.0 lib/data_migrate/migration_five.rb