Module: Code0::ZeroTrack::Database::MigrationHelpers::TableEnhancements
- Included in:
- Code0::ZeroTrack::Database::Migration::V1_0
- Defined in:
- lib/code0/zero_track/database/migration_helpers/table_enhancements.rb
Instance Method Summary collapse
- #change_table(table_name, *args, **kwargs, &block) ⇒ Object
- #create_table(table_name, *args, **kwargs, &block) ⇒ Object
Instance Method Details
#change_table(table_name, *args, **kwargs, &block) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/code0/zero_track/database/migration_helpers/table_enhancements.rb', line 16 def change_table(table_name, *args, **kwargs, &block) helper_context = self super do |t| enhance(t, table_name, helper_context, &block) end end |
#create_table(table_name, *args, **kwargs, &block) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/code0/zero_track/database/migration_helpers/table_enhancements.rb', line 8 def create_table(table_name, *args, **kwargs, &block) helper_context = self super do |t| enhance(t, table_name, helper_context, &block) end end |