include Mongoid::Timestamps
This commit is contained in:
parent
fa81b04eee
commit
0067ac48a5
|
@ -1,6 +1,7 @@
|
||||||
class Asset
|
class Asset
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
mount_uploader :data, AssetUploader
|
mount_uploader :data, AssetUploader
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class AttributeModel
|
class AttributeModel
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :key
|
field :key
|
||||||
field :i18n_variable_id, :type => BSON::ObjectId, :index => true
|
field :i18n_variable_id, :type => BSON::ObjectId, :index => true
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class I18nVariable
|
class I18nVariable
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :key
|
field :key
|
||||||
field :document_class, :type => String
|
field :document_class, :type => String
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class Item
|
class Item
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :name, :index => true
|
field :name, :index => true
|
||||||
field :full_name, :index => true
|
field :full_name, :index => true
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class Layout
|
class Layout
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :name, :index => true
|
field :name, :index => true
|
||||||
field :description
|
field :description
|
||||||
|
@ -16,4 +17,4 @@ class Layout
|
||||||
Layout.count > 0
|
Layout.count > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class Site
|
class Site
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :in_use_locales, :type => Array
|
field :in_use_locales, :type => Array
|
||||||
field :valid_locales, :type => Array
|
field :valid_locales, :type => Array
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class Snippet
|
class Snippet
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :name, :index => true
|
field :name, :index => true
|
||||||
field :full_name, :index => true
|
field :full_name, :index => true
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class User
|
class User
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable
|
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class UserAttributeModel
|
class UserAttributeModel
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :key
|
field :key
|
||||||
field :i18n_variable_id, :type => BSON::ObjectId, :index => true
|
field :i18n_variable_id, :type => BSON::ObjectId, :index => true
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class UserInfo
|
class UserInfo
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :key
|
field :key
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class UserRole
|
class UserRole
|
||||||
|
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include Mongoid::Timestamps
|
||||||
|
|
||||||
field :key
|
field :key
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue