mirror of https://github.com/rails/rails
Apply `t.timestamps` changes in Action Text and Action Mailbox
Follow up #34956.
This commit is contained in:
parent
2f9f699a2f
commit
30f666f87a
|
@ -5,11 +5,7 @@ class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
|
|||
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 @@ class CreateActionTextTables < ActiveRecord::Migration[6.0]
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue