class CreateCloudhdrJobs < ActiveRecord::Migration def self.up create_table :cloudhdr_jobs do |t| t.string "image_type" t.integer "image_id" t.integer "cloudhdr_job_id" t.integer "cloudhdr_input_id" t.integer "cloudhdr_output_id" t.string "cloudhdr_status" t.string "tracking_mode" t.integer "user_id" t.timestamps end add_index :cloudhdr_jobs, [:image_type, :image_id] add_index :cloudhdr_jobs, :id end def self.down drop_table :cloudhdr_jobs end end