diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-10-16 11:51:26 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-10-17 08:58:34 +0200 |
| commit | 2559018decedb1900994d318ab511d43f8a557f6 (patch) | |
| tree | a94614bc9dd8844502e582c17b430cd97802a2c2 /app/models | |
| parent | f87d138fc1374506ac61edb3e262d16226827223 (diff) | |
| download | operum-2559018decedb1900994d318ab511d43f8a557f6.tar.gz operum-2559018decedb1900994d318ab511d43f8a557f6.zip | |
Update Rails and Ruby
Patch level releases which fixes some minor issues on both Ruby and Ruby
and Rails.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/thing.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/thing.rb b/app/models/thing.rb index f3596f1..7ec6dc6 100644 --- a/app/models/thing.rb +++ b/app/models/thing.rb @@ -12,9 +12,10 @@ class Thing < ApplicationRecord has_many :tag_references, as: :taggable, dependent: :destroy has_many :tags, through: :tag_references - enum :status, %i[read notread tobepublished], validate: true - enum :kind, %i[other poetry theater essay shorts - novel paper letters phd chronicle bio it], validate: true + enum :status, { read: 0, notread: 1, tobepublished: 2 }, validate: true + enum :kind, { other: 0, poetry: 1, theater: 2, essay: 3, + shorts: 4, novel: 5, paper: 6, letters: 7, + phd: 8, chronicle: 9, bio: 10, it: 11 }, validate: true # Returns all things which match the given text for any of the string columns # from the table. |
