diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-18 09:57:10 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-26 22:49:14 +0900 |
commit | 57015cdfa2083351f64a82f7566965172a41efcb (patch) | |
tree | d6f859c2cfbc7b8bc7ba85c3de0efb5bba0a70e4 /actiontext/test/dummy/db/migrate/2018052816_create_action_text_tables.rb | |
parent | 5fe6d3747efd37d7d8c6c9d6557d7b623e0398e8 (diff) | |
download | rails-57015cdfa2083351f64a82f7566965172a41efcb.tar.gz rails-57015cdfa2083351f64a82f7566965172a41efcb.tar.bz2 rails-57015cdfa2083351f64a82f7566965172a41efcb.zip |
Make `t.timestamps` with precision by default
Diffstat (limited to 'actiontext/test/dummy/db/migrate/2018052816_create_action_text_tables.rb')
-rw-r--r-- | actiontext/test/dummy/db/migrate/2018052816_create_action_text_tables.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actiontext/test/dummy/db/migrate/2018052816_create_action_text_tables.rb b/actiontext/test/dummy/db/migrate/2018052816_create_action_text_tables.rb index 74c7a0ecb9..6e7177620f 100644 --- a/actiontext/test/dummy/db/migrate/2018052816_create_action_text_tables.rb +++ b/actiontext/test/dummy/db/migrate/2018052816_create_action_text_tables.rb @@ -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 |