Sha256: 6214bcd9482cb6de661b22a709025f42bbca4348e1aa1dd30e76de97b19eaaf6

Contents?: true

Size: 548 Bytes

Versions: 12

Compression:

Stored size: 548 Bytes

Contents

module DataMigrate
  class DataSchemaMigration
    class << self
      delegate :table_name, :primary_key, :create_table, :normalized_versions, :create, :create!, :table_exists?, :exists?, :where, to: :instance

      def instance
        @instance ||= Class.new(::ActiveRecord::SchemaMigration) do
          define_singleton_method(:table_name) { ActiveRecord::Base.table_name_prefix + 'data_migrations' + ActiveRecord::Base.table_name_suffix }
          define_singleton_method(:primary_key) { "version" }
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
data_migrate-9.1.3 lib/data_migrate/data_schema_migration.rb
data_migrate-9.1.2 lib/data_migrate/data_schema_migration.rb
data_migrate-9.1.1 lib/data_migrate/data_schema_migration.rb
data_migrate-9.1.0 lib/data_migrate/data_schema_migration.rb
data_migrate-10.0.3.rc lib/data_migrate/data_schema_migration.rb
data_migrate-10.0.0.rc1 lib/data_migrate/data_schema_migration.rb
data_migrate-9.0.0 lib/data_migrate/data_schema_migration.rb
data_migrate-8.5.0 lib/data_migrate/data_schema_migration.rb
data_migrate-8.4.2 lib/data_migrate/data_schema_migration.rb
data_migrate-8.4.1 lib/data_migrate/data_schema_migration.rb
data_migrate-8.4.0 lib/data_migrate/data_schema_migration.rb
data_migrate-8.3.0 lib/data_migrate/data_schema_migration.rb