text_marquee/app/models/marquee_text.rb

10 lines
231 B
Ruby
Raw Normal View History

2015-04-30 09:50:09 +00:00
class MarqueeText
include Mongoid::Document
include Mongoid::Timestamps
field :title, type: String, localize: true
field :url, type: String, localize: true
2016-10-24 06:23:35 +00:00
field :speed, type: Integer, default: 3000
2015-04-30 09:50:09 +00:00
belongs_to :marquee
end