Class: RailsDataMigrations::LogEntry
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- RailsDataMigrations::LogEntry
- 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
Class Method Details
.create_table ⇒ Object
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 |