Sha256: 4aee7eca490e900410cd49bba35dec84c5919119f2a7f5159b6ad45d6a31e6de
Contents?: true
Size: 672 Bytes
Versions: 37
Compression:
Stored size: 672 Bytes
Contents
class DeviseCreateUsers < ActiveRecord::Migration def self.up create_table(:users) do |t| t.database_authenticatable :null => false t.recoverable t.rememberable t.trackable # t.confirmable # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both # t.token_authenticatable t.timestamps end add_index :users, :email, :unique => true add_index :users, :reset_password_token, :unique => true # add_index :users, :confirmation_token, :unique => true # add_index :users, :unlock_token, :unique => true end def self.down drop_table :users end end
Version data entries
37 entries across 37 versions & 7 rubygems