2015-11-13 13:10:00 +00:00
|
|
|
class TableColumn
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
|
|
|
|
field :key
|
|
|
|
field :title, localize: true
|
|
|
|
field :display_in_index, type: Boolean, default: true
|
|
|
|
field :type
|
2015-11-18 15:51:49 +00:00
|
|
|
field :date_format, default: "YYYY/MM//DD"
|
2015-11-13 13:10:00 +00:00
|
|
|
field :is_link_to_show, type: Boolean, default: false
|
|
|
|
field :order, type: Integer
|
2015-11-18 15:51:49 +00:00
|
|
|
field :make_categorizable, type: Boolean, default: false
|
2015-11-13 13:10:00 +00:00
|
|
|
|
|
|
|
belongs_to :u_table
|
|
|
|
|
|
|
|
has_many :column_entries, :dependent => :destroy
|
|
|
|
end
|