negos_app/db/migrate/20170605133630_create_thing_conversations.rb
2017-06-06 16:15:40 +02:00

13 lines
321 B
Ruby

class CreateThingConversations < ActiveRecord::Migration
def change
create_table :thing_conversations do |t|
t.integer :thing_id
t.string :thing_type
t.references :conversation, index: true
t.timestamps null: false
end
add_foreign_key :thing_conversations, :conversations
end
end