Sha256: 21734977e1c1f29812234f9575de3dcf3b9a56fd999d3a21e6db7e8c7a91de8a
Contents?: true
Size: 776 Bytes
Versions: 28
Compression:
Stored size: 776 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.encryptable t.confirmable # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both t.token_authenticatable t.references :tenant 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 add_index :users, :authentication_token, :unique => true end def self.down drop_table :users end end
Version data entries
28 entries across 28 versions & 1 rubygems