Module: Authentasaurus::Ar::Migrations::Columns::InstanceMethods

Defined in:
lib/authentasaurus/ar/migrations.rb

Instance Method Summary collapse

Instance Method Details

#user(*opts) ⇒ Object



158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/authentasaurus/ar/migrations.rb', line 158

def user(*opts)
  string :username, :null => false
  string :hashed_password, :null => false
  string :password_seed, :null => false
  string :name, :null => false
  string :email, :null => false
  string :remember_me_token
  boolean :active, :null => false, :default => false
  if opts.include?(:authorizable)
    integer :group_id, :null => false
  end
end