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