Sha256: e5777b8d5087098aa5587402c8d108922955c2de599a1bd4bdd2a5c805261593
Contents?: true
Size: 838 Bytes
Versions: 6
Compression:
Stored size: 838 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.string :name t.string :username t.string :role 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
6 entries across 6 versions & 1 rubygems