Module: Cloudfuji::Orm::ActiveRecord

Defined in:
lib/cloudfuji/orm/active_record.rb

Overview

This module contains some helpers and handle schema (migrations):

create_table :accounts do |t|
  t.database_authenticatable
  t.confirmable
  t.recoverable
  t.rememberable
  t.trackable
  t.lockable
  t.timestamps
end

However this method does not add indexes. If you need them, here is the declaration:

add_index "accounts", ["email"],                :name => "email",                :unique => true
add_index "accounts", ["confirmation_token"],   :name => "confirmation_token",   :unique => true
add_index "accounts", ["reset_password_token"], :name => "reset_password_token", :unique => true

Defined Under Namespace

Modules: Schema