Add 'null: false' to Action Mailbox table

created_at and updated_at columns in Action Mailbox table aren't intended nullable.
This commit is contained in:
ikepon 2019-01-16 15:40:15 +09:00
parent a08827a90b
commit 6c156d4f6e
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
t.integer :status, default: 0, null: false
t.string :message_id
t.datetime :created_at, precision: 6
t.datetime :updated_at, precision: 6
t.datetime :created_at, precision: 6, null: false
t.datetime :updated_at, precision: 6, null: false
end
end
end