# File lib/data_migrate/data_schema_migration.rb, line 19 def primary_key "version" end
class DataMigrate::DataSchemaMigration
Public Class Methods
create_version(version)
click to toggle source
# File lib/data_migrate/data_schema_migration.rb, line 23 def create_version(version) # Note that SchemaMigration.create_version in Rails 7.1 does not # raise an error if validations fail but we retain this behaviour for now. create!(version: version) end
primary_key()
click to toggle source
table_name()
click to toggle source
# File lib/data_migrate/data_schema_migration.rb, line 15 def table_name ActiveRecord::Base.table_name_prefix + 'data_migrations' + ActiveRecord::Base.table_name_suffix end
Public Instance Methods
primary_key()
click to toggle source
# File lib/data_migrate/data_schema_migration.rb, line 10 def primary_key "version" end
table_name()
click to toggle source
# File lib/data_migrate/data_schema_migration.rb, line 6 def table_name ActiveRecord::Base.table_name_prefix + 'data_migrations' + ActiveRecord::Base.table_name_suffix end