Class: SO2DB::CreateOptionalRelationships

Inherits:
ActiveRecord::Migration
  • Object
show all
Includes:
FKHelper
Defined in:
lib/so2db/migrations.rb

Instance Method Summary collapse

Methods included from FKHelper

#add_fk

Instance Method Details

#upObject



319
320
321
322
323
324
# File 'lib/so2db/migrations.rb', line 319

def up
  add_fk(:posts, :post_types)
  add_fk(:post_history, :post_history_types)
  add_fk(:post_history, :close_reasons)
  add_fk(:votes, :vote_types)
end