class CreatePatchComments < ActiveRecord::Migration def self.up create_table :patch_comments do |t| t.column :patch_id, :integer t.column :text, :text t.column :score, :integer t.column :created_at, :datetime end end def self.down drop_table :patch_comments end end