Apply t.timestamps changes in Action Text and Action Mailbox

Follow up #34956.
This commit is contained in:
Ryuta Kamizono 2019-01-29 04:49:45 +09:00
parent 2f9f699a2f
commit 30f666f87a
4 changed files with 2 additions and 7 deletions

@ -5,11 +5,7 @@ def change
t.string :message_id, null: false
t.string :message_checksum, null: false
if supports_datetime_with_precision?
t.timestamps precision: 6
else
t.timestamps
end
t.timestamps
t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true
end

@ -5,8 +5,7 @@ def change
t.text :body, limit: 16777215
t.references :record, null: false, polymorphic: true, index: false
t.datetime :created_at, null: false
t.datetime :updated_at, null: false
t.timestamps
t.index [ :record_type, :record_id, :name ], name: "index_action_text_rich_texts_uniqueness", unique: true
end