cocoon/spec/dummy/db/migrate/20110420222224_create_peopl...

16 lines
249 B
Ruby
Raw Normal View History

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