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 /activerecord/test/schema/schema.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 'activerecord/test/schema/schema.rb')
-rw-r--r-- | activerecord/test/schema/schema.rb | 12 |
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| |