Class: SO2DB::CreateOptionalRelationships
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- SO2DB::CreateOptionalRelationships
- Includes:
- FKHelper
- Defined in:
- lib/so2db/migrations.rb
Instance Method Summary collapse
Methods included from FKHelper
Instance Method Details
#up ⇒ Object
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 |