Class: CreateUsers

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

Class Method Summary collapse

Class Method Details

.downObject



14
15
16
# File 'lib/templates/db/migrate/20101009192412_create_users.rb', line 14

def self.down
  drop_table :users
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/templates/db/migrate/20101009192412_create_users.rb', line 2

def self.up
  create_table :users do |t|
    t.string :name
    t.string :nickname
    t.string :image
    t.string :description
    t.string :location

    t.timestamps
  end
end