cocoon/spec/dummy/db/migrate/20110306212208_create_posts.rb
2011-03-06 22:40:37 +01:00

15 lines
213 B
Ruby

class CreatePosts < ActiveRecord::Migration
def self.up
create_table :posts do |t|
t.string :title
t.text :body
t.timestamps
end
end
def self.down
drop_table :posts
end
end