aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox
diff options
context:
space:
mode:
authorikepon <tatsuyanoheya@gmail.com>2019-01-16 15:40:15 +0900
committerikepon <tatsuyanoheya@gmail.com>2019-01-16 15:40:15 +0900
commit6c156d4f6e2bef5fe190d1426c1b867cd8931feb (patch)
treeefbd37260377a17a26d2e840ee33a14ac18c531a /actionmailbox
parenta08827a90b5a9be79379019cf5b242bd7236d2e3 (diff)
downloadrails-6c156d4f6e2bef5fe190d1426c1b867cd8931feb.tar.gz
rails-6c156d4f6e2bef5fe190d1426c1b867cd8931feb.tar.bz2
rails-6c156d4f6e2bef5fe190d1426c1b867cd8931feb.zip
Add 'null: false' to Action Mailbox table
created_at and updated_at columns in Action Mailbox table aren't intended nullable.
Diffstat (limited to 'actionmailbox')
-rw-r--r--actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb b/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb
index 0124b4b98f..8cf621d7e3 100644
--- a/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb
+++ b/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb
@@ -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