aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-01-18 09:57:10 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-01-26 22:49:14 +0900
commit57015cdfa2083351f64a82f7566965172a41efcb (patch)
treed6f859c2cfbc7b8bc7ba85c3de0efb5bba0a70e4 /activerecord/test/schema
parent5fe6d3747efd37d7d8c6c9d6557d7b623e0398e8 (diff)
downloadrails-57015cdfa2083351f64a82f7566965172a41efcb.tar.gz
rails-57015cdfa2083351f64a82f7566965172a41efcb.tar.bz2
rails-57015cdfa2083351f64a82f7566965172a41efcb.zip
Make `t.timestamps` with precision by default
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 7034c773d2..86d5a67a13 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -682,11 +682,7 @@ ActiveRecord::Schema.define do
create_table :pets, primary_key: :pet_id, force: true do |t|
t.string :name
t.integer :owner_id, :integer
- if subsecond_precision_supported?
- t.timestamps null: false, precision: 6
- else
- t.timestamps null: false
- end
+ t.timestamps
end
create_table :pets_treasures, force: true do |t|
@@ -904,11 +900,7 @@ ActiveRecord::Schema.define do
t.string :parent_title
t.string :type
t.string :group
- if subsecond_precision_supported?
- t.timestamps null: true, precision: 6
- else
- t.timestamps null: true
- end
+ t.timestamps null: true
end
create_table :toys, primary_key: :toy_id, force: true do |t|