|
1 | 1 | class CreateUsers < ActiveRecord::Migration
|
2 | 2 | def self.up
|
3 | 3 | create_table :users do |t|
|
4 |
| - t.string :login, :null => false # optional, you can use email instead, or both |
5 |
| - t.string :email, :null => false # optional, you can use login instead, or both |
6 |
| - t.string :crypted_password, :null => false # optional, see below |
7 |
| - t.string :password_salt, :null => false # optional, but highly recommended |
8 |
| - t.string :persistence_token, :null => false # required |
9 |
| - t.string :single_access_token, :null => false # optional, see Authlogic::Session::Params |
10 |
| - t.string :perishable_token, :null => false # optional, see Authlogic::Session::Perishability |
| 4 | + t.string :login, :null => false, :default => "" # optional, you can use email instead, or both |
| 5 | + t.string :email, :null => false, :default => "" # optional, you can use login instead, or both |
| 6 | + t.string :crypted_password, :null => false, :default => "" # optional, see below |
| 7 | + t.string :password_salt, :null => false, :default => "" # optional, but highly recommended |
| 8 | + t.string :persistence_token, :null => false, :default => "" # required |
| 9 | + t.string :single_access_token, :null => false, :default => "" # optional, see Authlogic::Session::Params |
| 10 | + t.string :perishable_token, :default => "", :null => false |
11 | 11 |
|
12 | 12 | # Magic columns, just like ActiveRecord's created_at and updated_at. These are automatically maintained by Authlogic if they are present.
|
13 | 13 | t.integer :login_count, :null => false, :default => 0 # optional, see Authlogic::Session::MagicColumns
|
|
0 commit comments