Sha256: 93e00c2cdee61f50e2c273ba5701ad27d27e30e6fc925d40cffce995170a5f10

Contents?: true

Size: 209 Bytes

Versions: 2

Compression:

Stored size: 209 Bytes

Contents

class Wupee::NotificationType < ActiveRecord::Base
  validates :name, presence: true
  validates :name, uniqueness: true

  has_many :notifications, foreign_key: :notification_type_id, dependent: :destroy
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wupee-2.0.0.beta2 app/models/wupee/notification_type.rb
wupee-2.0.0.beta1 app/models/wupee/notification_type.rb