ref: master
db/migrate/20140811141211_create_suggestion_connections.rb
1 2 3 4 5 6 7 8 9 10 11 12 |
class CreateSuggestionConnections < ActiveRecord::Migration def up create_table :suggestion_connections do |t| t.references :suggestion, :null => false t.references :connection, :polymorphic => true, :null => false end end def down drop_table :suggestion_connections end end |