Tidy up changeset comment code

This commit is contained in:
Tom Hughes 2014-10-19 21:31:23 +01:00
parent 14ac1babc2
commit 8598db3233
9 changed files with 41 additions and 33 deletions

View file

@ -9,8 +9,10 @@ class CreateChangesetComments < ActiveRecord::Migration
t.timestamp :created_at, :null => false
t.boolean :visible, :null => false
end
add_foreign_key :changeset_comments, [:changeset_id], :changesets, [:id]
add_foreign_key :changeset_comments, [:author_id], :users, [:id]
add_index :changeset_comments, :created_at
end
end