Class: CreateUsers

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
db/migrate/008_create_users.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'db/migrate/008_create_users.rb', line 13

def self.down
  drop_table :users
end

.upObject



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.timestamps
  end
end