X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5cc0eba3f10da37a14e8f27f04c7695505b4c684..757a1aaa850bf48e45ee1dd2225cda1c9fa47d73:/db/migrate/20160822153115_create_issue_comments.rb?ds=sidebyside diff --git a/db/migrate/20160822153115_create_issue_comments.rb b/db/migrate/20160822153115_create_issue_comments.rb index 98b2afd10..57e35f48b 100644 --- a/db/migrate/20160822153115_create_issue_comments.rb +++ b/db/migrate/20160822153115_create_issue_comments.rb @@ -6,14 +6,13 @@ class CreateIssueComments < ActiveRecord::Migration t.text :body t.datetime :created_at t.boolean :reassign - t.timestamps null: false + t.timestamps :null => false end - add_foreign_key :issue_comments, :issues, :name => "issue_comments_issue_id_fkey", on_delete: :cascade - add_foreign_key :issue_comments, :users,:column => :commenter_user_id, :name => "issue_comments_commenter_user_id", on_delete: :cascade - - add_index :issue_comments, :commenter_user_id - add_index :issue_comments, :issue_id + add_foreign_key :issue_comments, :issues, :name => "issue_comments_issue_id_fkey", :on_delete => :cascade + add_foreign_key :issue_comments, :users, :column => :commenter_user_id, :name => "issue_comments_commenter_user_id", :on_delete => :cascade + add_index :issue_comments, :commenter_user_id + add_index :issue_comments, :issue_id end end