notebook/app/models/magic.rb
2013-03-11 23:43:51 -05:00

31 lines
759 B
Ruby

class Magic
include Mongoid::Document
# General
field :name, :type => String
field :type_of, :type => String # "Type of": Spell, Ability, Enchantment, etc
# Appearance
field :manifestation, :type => String
field :symptoms, :type => String
# Alignment
field :element, :type => String
field :diety, :type => String
# Effects
field :harmfulness, :type => String # Harmful effects
field :helpfulness, :type => String # Helpful effects
field :neutralness, :type => String # Neutral effects
# Requirements
field :resource, :type => String # Resource required
field :skill_level, :type => String # Skill required
field :limitations, :type => String
# More
field :notes, :type => String
belongs_to :user
end