module

Granite::Transactions

Instance methods

destroy

Destroy will remove this from the database.

Source
destroy!
Source
save(*, 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.

Source
save!(*, validate : Bool = true)
Source
set_timestamps(*, to time = Time.local(Granite.settings.default_timezone), mode = :create)
Source
touch(*fields) : Bool

Saves the record with the updated_at/names fields updated to the current time.

Source
update
Source
update!(args : Granite::ModelArgs)
Source
update!
Source

Nested types