e4011ef211
- schema changes to primary and foreign keys - fixture changes - customer data models subclass AccountScopedRecord - import script updated
13 lines
251 B
Ruby
13 lines
251 B
Ruby
class Step < AccountScopedRecord
|
|
belongs_to :account, default: -> { Current.account }
|
|
belongs_to :card, touch: true
|
|
|
|
scope :completed, -> { where(completed: true) }
|
|
|
|
validates :content, presence: true
|
|
|
|
def completed?
|
|
completed
|
|
end
|
|
end
|