Class: CreateCloudhdrJobs

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/cloudhdr_rails/templates/migration.rb

Class Method Summary collapse

Class Method Details

.downObject



18
19
20
# File 'lib/generators/cloudhdr_rails/templates/migration.rb', line 18

def self.down
  drop_table :cloudhdr_jobs
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/cloudhdr_rails/templates/migration.rb', line 2

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