Tidy up changeset comment code
This commit is contained in:
parent
14ac1babc2
commit
8598db3233
9 changed files with 41 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue