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

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, **options)
  record(:change_check_constraint, [table, options])
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, **options)
  record(:change_constraint, [table, constraint, options])
end

#change_index(table, **options) ⇒ Object



19
20
21
# File 'lib/active_record/pg_extensions/command_recorder.rb', line 19

def change_index(table, **options)
  record(:change_index, [table, options])
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, **options)
  record(:rename_constraint, [table_name, old_name, new_name, options])
end