bigdir/db/migrate/20130810014337_create_journ...

14 lines
346 B
Ruby
Raw Normal View History

class CreateJournalReplies < ActiveRecord::Migration
def change
create_table :journal_replies, :id => false do |t|
t.integer :journal_id
t.integer :user_id
t.integer :reply_id
end
add_index :journal_replies, :user_id
add_index :journal_replies, :journal_id
add_index :journal_replies, :reply_id
end
end