]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/20160822153115_create_issue_comments.rb
Remove the reassign column from issue_comments
[rails.git] / db / migrate / 20160822153115_create_issue_comments.rb
index e3c379bc1e2bf9ce92d73857028b963a9a0704c7..73aab9a12a7bf015e5b98637a696fc0d1682b2b0 100644 (file)
@@ -1,10 +1,9 @@
-class CreateIssueComments < ActiveRecord::Migration
+class CreateIssueComments < ActiveRecord::Migration[5.0]
   def change
     create_table :issue_comments do |t|
-      t.integer :issue_id
-      t.integer :commenter_user_id
-      t.text :body
-      t.boolean :reassign
+      t.integer :issue_id, :null => false
+      t.integer :commenter_user_id, :null => false
+      t.text :body, :null => false
       t.timestamps :null => false
     end