notebook/app/models/language.rb
Andrew Brown ca8beb18dc languages
2012-12-27 23:18:41 -06:00

22 lines
369 B
Ruby

class Language
include Mongoid::Document
# General
field :name, :type => String
# Vocabulary
field :words, :type => String
# History
field :established_year, :type => String
field :established_location, :type => String
# Speakers
field :characters, :type => String
field :locations, :type => String
# More
belongs_to :user
end