diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-29 16:17:01 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-29 16:24:57 +0900 |
commit | 9abf606a79729833fd90f624ed580ad85f3ebadc (patch) | |
tree | 2ae13816024dd83168aadee998ace0505734dc65 /activerecord/test/schema | |
parent | 366f094598305074c4430fab581ddfd599c1cf96 (diff) | |
download | rails-9abf606a79729833fd90f624ed580ad85f3ebadc.tar.gz rails-9abf606a79729833fd90f624ed580ad85f3ebadc.tar.bz2 rails-9abf606a79729833fd90f624ed580ad85f3ebadc.zip |
Should not update children when the parent creation with no reason
This issue was introduced with d849f42 to solve #19782. However, we can
solve #19782 without causing the issue. It is enough to save only when
necessary.
Fixes #27338.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 9d76d0537e..ba6f5de894 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -574,6 +574,7 @@ ActiveRecord::Schema.define do t.column :color, :string t.column :parrot_sti_class, :string t.column :killer_id, :integer + t.column :updated_count, :integer, default: 0 if subsecond_precision_supported? t.column :created_at, :datetime, precision: 0 t.column :created_on, :datetime, precision: 0 |