diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2019-07-24 14:44:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 14:44:53 -0400 |
commit | 0206d9cb7c823fefbf3dfc1d1672be4628986c4e (patch) | |
tree | 070bdb208f7ddcba7a3ed9006c7ab65d22221390 /activerecord/test/models/mouse.rb | |
parent | 0744e15a35446865c6eced891a1356ccff4513d9 (diff) | |
parent | 6ea80b6103de9ef76dca9d51149dd94bec846642 (diff) | |
download | rails-0206d9cb7c823fefbf3dfc1d1672be4628986c4e.tar.gz rails-0206d9cb7c823fefbf3dfc1d1672be4628986c4e.tar.bz2 rails-0206d9cb7c823fefbf3dfc1d1672be4628986c4e.zip |
Merge pull request #36671 from wjessop/do_not_validate_non_dirty_association_targets
Don't validate non dirty association targets
Diffstat (limited to 'activerecord/test/models/mouse.rb')
-rw-r--r-- | activerecord/test/models/mouse.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/mouse.rb b/activerecord/test/models/mouse.rb new file mode 100644 index 0000000000..75a55c125d --- /dev/null +++ b/activerecord/test/models/mouse.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +class Mouse < ActiveRecord::Base + has_many :squeaks, autosave: true + validates :name, presence: true +end |