Sha256: 9a040e3ca697e3601b7aa7d794b3260e32ec027a7867a757e5985061bfd3ac02
Contents?: true
Size: 309 Bytes
Versions: 3
Compression:
Stored size: 309 Bytes
Contents
class Issue < ApplicationRecord extend Enumerize belongs_to :project belongs_to :creator, class_name: 'User' belongs_to :assignee, class_name: 'User' validates :title, presence: true STATUS_MAP = { draft: 0, opened: 1, closed: 2, }.freeze enumerize :status, in: STATUS_MAP end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
model_base_generators-0.3.1 | example/app/models/issue.rb |
model_base_generators-0.3.0 | example/app/models/issue.rb |
model_base_generators-0.2.4 | example/app/models/issue.rb |