diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-26 23:37:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 23:37:17 +0900 |
commit | 5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17 (patch) | |
tree | 61807c95af11f48d9d31a47ef7599f39c08794ac /activerecord/test/schema/schema.rb | |
parent | d90593d0deabb90ac5cfdf767f2f037337bb4d31 (diff) | |
parent | 57015cdfa2083351f64a82f7566965172a41efcb (diff) | |
download | rails-5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17.tar.gz rails-5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17.tar.bz2 rails-5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17.zip |
Merge pull request #34970 from kamipo/timestamps_with_precision_by_default
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| |