-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