e4011ef211
- schema changes to primary and foreign keys - fixture changes - customer data models subclass AccountScopedRecord - import script updated
8 lines
191 B
Ruby
8 lines
191 B
Ruby
class Watch < AccountScopedRecord
|
|
belongs_to :user
|
|
belongs_to :card, touch: true
|
|
|
|
scope :watching, -> { where(watching: true) }
|
|
scope :not_watching, -> { where(watching: false) }
|
|
end
|