From 57015cdfa2083351f64a82f7566965172a41efcb Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 18 Jan 2019 09:57:10 +0900 Subject: Make `t.timestamps` with precision by default --- .../test/dummy/db/migrate/2018052816_create_action_text_tables.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'actiontext/test/dummy/db/migrate/2018052816_create_action_text_tables.rb') 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 -- cgit v1.2.3