universal_table/app/models/table_entry.rb

10 lines
234 B
Ruby
Raw Normal View History

2015-11-13 13:10:00 +00:00
class TableEntry
include Mongoid::Document
include Mongoid::Timestamps
include Slug
has_many :column_entries, :dependent => :destroy
belongs_to :u_table
accepts_nested_attributes_for :column_entries, :allow_destroy => true
end