gallery/app/models/album_color.rb

6 lines
127 B
Ruby

class AlbumColor
include Mongoid::Document
include Mongoid::Timestamps
field :color, type: String
belongs_to :album
end