Files
danbooru/db/migrate/20100223001012_create_post_disapprovals.rb
2013-03-19 23:10:10 +11:00

17 lines
393 B
Ruby

class CreatePostDisapprovals < ActiveRecord::Migration
def self.up
create_table :post_disapprovals do |t|
t.column :user_id, :integer, :null => false
t.column :post_id, :integer, :null => false
t.timestamps
end
add_index :post_disapprovals, :user_id
add_index :post_disapprovals, :post_id
end
def self.down
drop_table :post_disapprovals
end
end