Sha256: 2af6fc51e13dc0d036e27ddd7d402ac5f322db85680084555df9b15838e3343f

Contents?: true

Size: 157 Bytes

Versions: 2

Compression:

Stored size: 157 Bytes

Contents

class Person < ActiveRecord::Base
  has_many :posts

  validates_uniqueness_of :email, scope: :site, case_sensitive: false
  validates_associated :posts
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-activemodel-1.1.0 test/models/person.rb
minitest-activemodel-1.0.0 test/models/person.rb