include Mongoid::Timestamps

This commit is contained in:
chris 2011-03-08 17:25:46 +08:00 committed by ihower
parent fa81b04eee
commit 0067ac48a5
11 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,7 @@
class Asset
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :data, AssetUploader

View File

@ -1,6 +1,7 @@
class AttributeModel
include Mongoid::Document
include Mongoid::Timestamps
field :key
field :i18n_variable_id, :type => BSON::ObjectId, :index => true

View File

@ -1,6 +1,7 @@
class I18nVariable
include Mongoid::Document
include Mongoid::Timestamps
field :key
field :document_class, :type => String

View File

@ -1,6 +1,7 @@
class Item
include Mongoid::Document
include Mongoid::Timestamps
field :name, :index => true
field :full_name, :index => true

View File

@ -1,6 +1,7 @@
class Layout
include Mongoid::Document
include Mongoid::Timestamps
field :name, :index => true
field :description
@ -16,4 +17,4 @@ class Layout
Layout.count > 0
end
end
end

View File

@ -1,6 +1,7 @@
class Site
include Mongoid::Document
include Mongoid::Timestamps
field :in_use_locales, :type => Array
field :valid_locales, :type => Array

View File

@ -1,6 +1,7 @@
class Snippet
include Mongoid::Document
include Mongoid::Timestamps
field :name, :index => true
field :full_name, :index => true

View File

@ -1,6 +1,7 @@
class User
include Mongoid::Document
include Mongoid::Timestamps
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable

View File

@ -1,6 +1,7 @@
class UserAttributeModel
include Mongoid::Document
include Mongoid::Timestamps
field :key
field :i18n_variable_id, :type => BSON::ObjectId, :index => true

View File

@ -1,6 +1,7 @@
class UserInfo
include Mongoid::Document
include Mongoid::Timestamps
field :key

View File

@ -1,6 +1,7 @@
class UserRole
include Mongoid::Document
include Mongoid::Timestamps
field :key