Sha256: 6d980e85422fe2b1c0b73a50926d5b3517583bc68d88169151f6c78667400c3a
Contents?: true
Size: 679 Bytes
Versions: 20
Compression:
Stored size: 679 Bytes
Contents
class DeviseCreateAdmins < ActiveRecord::Migration def self.up create_table(:admins) 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 :admins, :email, :unique => true add_index :admins, :reset_password_token, :unique => true # add_index :admins, :confirmation_token, :unique => true # add_index :admins, :unlock_token, :unique => true end def self.down drop_table :admins end end
Version data entries
20 entries across 10 versions & 1 rubygems