We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e62cdc commit 1cd564aCopy full SHA for 1cd564a
playground/vanilla/app/models/song.rb
@@ -2,6 +2,6 @@ class Song < ApplicationRecord
2
belongs_to :composer
3
has_many :video_clips
4
5
- enum genre: {fingerstyle: "fingerstyle", rock: "rock", classical: "classical"}
6
- enum tempo: %w[slow medium fast]
+ enum :genre, fingerstyle: "fingerstyle", rock: "rock", classical: "classical"
+ enum :tempo, %w[slow medium fast]
7
end
0 commit comments