Class: RailsDataMigrations::LogEntry

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
SharedMethods
Defined in:
lib/rails_data_migrations/log_entry.rb,
lib/rails_data_migrations/log_entry.rb

Class Method Summary collapse

Methods included from SharedMethods

index_name, table_name

Class Method Details

.create_tableObject



24
25
26
27
28
29
30
# File 'lib/rails_data_migrations/log_entry.rb', line 24

def create_table
  ::ActiveRecord::SchemaMigration.define_method(:table_name) do
    "#{::ActiveRecord::Base.table_name_prefix}data_migrations#{::ActiveRecord::Base.table_name_suffix}"
  end

  ::ActiveRecord::Base.connection.schema_migration.create_table
end