class SO2DB::AddForeignKeyMigration

Public Class Methods

new(from_table, to_table, options) click to toggle source
# File lib/so2db/migrations.rb, line 48
def initialize(from_table, to_table, options)
  @from_table = from_table
  @to_table = to_table
  @options = options
end

Public Instance Methods

up() click to toggle source
# File lib/so2db/migrations.rb, line 54
def up
  add_foreign_key(@from_table, @to_table, @options)
end