Module: ActiveRecord::PGExtensions::CommandRecorder
- Defined in:
- lib/active_record/pg_extensions/command_recorder.rb
Overview
adds support for reverting migration methods added by this gem
Instance Method Summary collapse
- #change_check_constraint(table, **options) ⇒ Object
- #change_constraint(table, constraint, **options) ⇒ Object
- #change_index(table, **options) ⇒ Object
- #rename_constraint(table_name, old_name, new_name, **options) ⇒ Object
Instance Method Details
#change_check_constraint(table, **options) ⇒ Object
15 16 17 |
# File 'lib/active_record/pg_extensions/command_recorder.rb', line 15 def change_check_constraint(table, **) record(:change_check_constraint, [table, ]) end |
#change_constraint(table, constraint, **options) ⇒ Object
11 12 13 |
# File 'lib/active_record/pg_extensions/command_recorder.rb', line 11 def change_constraint(table, constraint, **) record(:change_constraint, [table, constraint, ]) end |
#change_index(table, **options) ⇒ Object
19 20 21 |
# File 'lib/active_record/pg_extensions/command_recorder.rb', line 19 def change_index(table, **) record(:change_index, [table, ]) end |
#rename_constraint(table_name, old_name, new_name, **options) ⇒ Object
7 8 9 |
# File 'lib/active_record/pg_extensions/command_recorder.rb', line 7 def rename_constraint(table_name, old_name, new_name, **) record(:rename_constraint, [table_name, old_name, new_name, ]) end |