15 lines
345 B
Ruby
15 lines
345 B
Ruby
class TableColumn
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
|
|
field :key
|
|
field :title, localize: true
|
|
field :display_in_index, type: Boolean, default: true
|
|
field :type
|
|
field :is_link_to_show, type: Boolean, default: false
|
|
field :order, type: Integer
|
|
|
|
belongs_to :u_table
|
|
|
|
has_many :column_entries, :dependent => :destroy
|
|
end |