cocoon/spec/dummy/db/migrate/20110420222224_create_people.rb

16 lines
249 B
Ruby

class CreatePeople < ActiveRecord::Migration
def self.up
create_table :people do |t|
t.string :name
t.string :description
t.integer :post_id
t.timestamps
end
end
def self.down
drop_table :people
end
end