Class: ClearanceCreateUsers
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- ClearanceCreateUsers
- Defined in:
- lib/rails/generators/clearance_templates/migrations/create_users.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
17 18 19 |
# File 'lib/rails/generators/clearance_templates/migrations/create_users.rb', line 17 def self.down drop_table :users end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/rails/generators/clearance_templates/migrations/create_users.rb', line 2 def self.up create_table(:users) do |t| t.string :email t.string :encrypted_password, :limit => 128 t.string :salt, :limit => 128 t.string :confirmation_token, :limit => 128 t.string :remember_token, :limit => 128 t.boolean :email_confirmed, :default => false, :null => false t. end add_index :users, :email add_index :users, :remember_token end |