Class: CreateUsers
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUsers
- Defined in:
- db/migrate/008_create_users.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'db/migrate/008_create_users.rb', line 13 def self.down drop_table :users end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'db/migrate/008_create_users.rb', line 2 def self.up create_table :users do |t| t.string :username t.string :crypted_password t.string :password_salt t.string :persistence_token t. end end |