module SO2DB::FKHelper
Public Instance Methods
add_fk(from_table, to_table, options={})
click to toggle source
# File lib/so2db/migrations.rb, line 32 def add_fk(from_table, to_table, options={}) begin AddForeignKeyMigration.new(from_table, to_table, options).up rescue puts $!.inspect #puts $@ s = "Error creating foreign key from #{from_table} to #{to_table}" s << " on column #{options[:column]}" if options.has_key? :column puts s end end