Files
fizzy/app/models/watch.rb
T
Donal McBreen fc56ad9d7c Combine uuid-old and uuid branch changes
- Switch to binary 16 for UUID keys
- Remove AccountScopedRecord base class, all model use binary uuids now
- Fix the search sql to serialize uuids properly
- Patch the MySQL schema dumper to output binary lengths
2025-11-17 09:12:34 -05:00

8 lines
189 B
Ruby

class Watch < ApplicationRecord
belongs_to :user
belongs_to :card, touch: true
scope :watching, -> { where(watching: true) }
scope :not_watching, -> { where(watching: false) }
end