ask/app/models/ask_admin.rb

7 lines
140 B
Ruby

class AskAdmin
include Mongoid::Document
include Mongoid::Timestamps
field :email, type: String
has_and_belongs_to_many :categories
end