engine/db/migrate/20100402150526_devise_create_accounts.rb

24 lines
651 B
Ruby
Raw Normal View History

2010-04-09 09:23:41 +00:00
# class DeviseCreateAccounts < ActiveRecord::Migration
# def self.up
# create_table(:accounts) do |t|
# t.authenticatable :encryptor => :sha1, :null => false
# t.confirmable
# t.recoverable
# t.rememberable
# t.trackable
# # t.lockable
#
# t.timestamps
# end
#
# add_index :accounts, :email, :unique => true
# add_index :accounts, :confirmation_token, :unique => true
# add_index :accounts, :reset_password_token, :unique => true
# # add_index :accounts, :unlock_token, :unique => true
# end
#
# def self.down
# drop_table :accounts
# end
# end