Class: CreatePeople

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/db/migrate/01_create_people.rb

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
# File 'lib/db/migrate/01_create_people.rb', line 10

def self.down
  drop_table :people
end

.upObject



2
3
4
5
6
7
8
# File 'lib/db/migrate/01_create_people.rb', line 2

def self.up
  create_table :people do |t|
    t.string :name,  :null => false
    t.string :email, :null => false
    t.timestamps
  end
end