Sha256: 831d6ee4bd2e2e298730a42d1c9c2a1597e1f0c833d8d427340bcea1574801f1

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

class Settings
  include Mongoid::Document
  include Mongoid::Timestamps
  include Sunrise::Models::Settings
  
  # Columns
  field :var, :type => String
  field :value, :type => String
  
  index({var: 1}, {unique: true})

  def self.table_exists?
    true
  end
end 

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sunrise-cms-0.5.3 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-0.5.2 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-0.5.1 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-0.5.0 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-0.5.0.rc5 lib/generators/sunrise/templates/models/mongoid/settings.rb
sunrise-cms-0.5.0.rc4 lib/generators/sunrise/templates/models/mongoid/settings.rb