Granite::Transactions
Instance methods
destroy!
Sourcesave(*, validate : Bool = true)
The save method will check to see if the primary key exists yet. If it does it will call the update method, otherwise it will call the create method. This will update the timestamps appropriately.
touch(*fields) : Bool
Saves the record with the updated_at/names fields updated to the current time.
update(args : Granite::ModelArgs)
Sourceupdate
Sourceupdate!(args : Granite::ModelArgs)
Sourceupdate!
Source