16 lines
249 B
Ruby
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
|