universal_table/app/models/table_entry.rb

10 lines
234 B
Ruby

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