text_marquee/app/models/marquee_text.rb

10 lines
231 B
Ruby

class MarqueeText
include Mongoid::Document
include Mongoid::Timestamps
field :title, type: String, localize: true
field :url, type: String, localize: true
field :speed, type: Integer, default: 3000
belongs_to :marquee
end