X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/14ac1babc2517320a2c90fa9b4ac36a5a6e68018..758e6da9a80e2e53a171ebc3119f813f8ff4141c:/db/migrate/20140507110937_create_changeset_comments.rb?ds=sidebyside diff --git a/db/migrate/20140507110937_create_changeset_comments.rb b/db/migrate/20140507110937_create_changeset_comments.rb index a44fd61ce..8d2a4599d 100644 --- a/db/migrate/20140507110937_create_changeset_comments.rb +++ b/db/migrate/20140507110937_create_changeset_comments.rb @@ -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