video_channel/app/models/channel_video.rb

10 lines
175 B
Ruby

class ChannelVideo
include Mongoid::Document
include Mongoid::Timestamps
attr_accessible :channel_name
field :channel_name
validates_presence_of :channel_name
end