Module: Immigrate::CommandRecorder

Included in:
ActiveRecord::Migration::CommandRecorder
Defined in:
lib/immigrate/command_recorder.rb

Instance Method Summary collapse

Instance Method Details

#create_foreign_connection(*args) ⇒ Object



3
4
5
# File 'lib/immigrate/command_recorder.rb', line 3

def create_foreign_connection *args
  record(:create_foreign_connection, args)
end

#create_foreign_table(*args) ⇒ Object



11
12
13
# File 'lib/immigrate/command_recorder.rb', line 11

def create_foreign_table *args
  record(:create_foreign_table, args)
end

#invert_create_foreign_connection(*args) ⇒ Object



7
8
9
# File 'lib/immigrate/command_recorder.rb', line 7

def invert_create_foreign_connection *args
  [:drop_foreign_connection, *args]
end

#invert_create_foreign_table(*args) ⇒ Object



15
16
17
# File 'lib/immigrate/command_recorder.rb', line 15

def invert_create_foreign_table *args
  [:drop_foreign_table, *args]
end