Sha256: aa4eeac094596328398e9bd69ae6ffed10fd2167abfe488a8e0dea93dc24157a

Contents?: true

Size: 174 Bytes

Versions: 16

Compression:

Stored size: 174 Bytes

Contents

module Gaku
  class ContactType < ActiveRecord::Base
    has_many :contacts

    validates :name, presence: true, uniqueness: true

    def to_s
      name
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_core-0.3.0 app/models/gaku/contact_type.rb
gaku_core-0.3.0.pre.4 app/models/gaku/contact_type.rb
gaku_core-0.3.0.pre.3 app/models/gaku/contact_type.rb
gaku_core-0.3.0.pre.2 app/models/gaku/contact_type.rb
gaku_core-0.3.0.pre.1 app/models/gaku/contact_type.rb
gaku_core-0.3.0.pre.0 app/models/gaku/contact_type.rb
gaku-0.2.4 core/app/models/gaku/contact_type.rb
gaku_core-0.2.4 app/models/gaku/contact_type.rb
gaku-0.2.3 core/app/models/gaku/contact_type.rb
gaku_core-0.2.3 app/models/gaku/contact_type.rb
gaku-0.2.2 core/app/models/gaku/contact_type.rb
gaku_core-0.2.2 app/models/gaku/contact_type.rb
gaku-0.2.1 core/app/models/gaku/contact_type.rb
gaku_core-0.2.1 app/models/gaku/contact_type.rb
gaku-0.2.0 core/app/models/gaku/contact_type.rb
gaku_core-0.2.0 app/models/gaku/contact_type.rb