Class: CreateEncodableJobs

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

Class Method Summary collapse

Class Method Details

.downObject



23
24
25
# File 'lib/generators/phocoder_rails/templates/migration.rb', line 23

def self.down
  drop_table :encodable_jobs
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/generators/phocoder_rails/templates/migration.rb', line 2

def self.up
  create_table :encodable_jobs do |t|
    t.string   "encodable_type"
    t.integer  "encodable_id"
    t.integer  "phocoder_job_id"
    t.integer  "phocoder_input_id"
    t.integer  "phocoder_output_id"
    t.string   "phocoder_status"
    t.integer  "zencoder_job_id"
    t.integer  "zencoder_input_id"
    t.integer  "zencoder_output_id"
    t.string   "zencoder_status"
    t.string   "zencoder_url"
    t.string   "tracking_mode"
    t.integer  "user_id"
    t.timestamps
  end
  add_index :encodable_jobs, [:encodable_type, :encodable_id]
  add_index :encodable_jobs, :id
end