Sha256: d1a8e7f943af86b7dbe240b76e4360cc13cb7d34fb79f9391f790d0abfe6a93b
Contents?: true
Size: 292 Bytes
Versions: 6
Compression:
Stored size: 292 Bytes
Contents
class User < ApplicationRecord serialize :preferences validates :email, presence: true, length: { minimum: 5 } validates :terms, acceptance: { accept: true } has_one :address accepts_nested_attributes_for :address has_rich_text(:life_story) if Rails::VERSION::STRING > "6" end
Version data entries
6 entries across 6 versions & 2 rubygems