fc56ad9d7c
- 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
13 lines
249 B
Ruby
13 lines
249 B
Ruby
class Step < ApplicationRecord
|
|
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
|