Class: CreateUsers
- Defined in:
- lib/db/migrate/20091227214245_create_users.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
19 20 21 22 |
# File 'lib/db/migrate/20091227214245_create_users.rb', line 19 def self.down remove_index :users, :openid_identifier drop_table :users end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/db/migrate/20091227214245_create_users.rb', line 2 def self.up create_table :users do |t| t.string :openid_identifier t.string :persistence_token, :null => false t.integer :login_count, :default => 0, :null => false t.datetime :last_request_at t.datetime :last_login_at t.datetime :current_login_at t.string :last_login_ip t.string :current_login_ip t. end add_index :users, :openid_identifier end |