notebook/app/models/magic.rb
2014-01-09 17:39:17 +00:00

33 lines
823 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
# Notes
field :notes, :type => String
field :private_notes, :type => String
belongs_to :user
belongs_to :universe
end