Sha256: 41d4e4685125a845a3e12106aa775d90cc61005c3877357cb61ac7ed2eca8ab6

Contents?: true

Size: 411 Bytes

Versions: 5

Compression:

Stored size: 411 Bytes

Contents

class AddInvocation< ActiveRecord::Migration
  def change
    create_table :job_invocations do |t|
      t.references :targeting, :null => false
      t.string :job_name, :null => false
    end

    add_index :job_invocations, [:targeting_id], :name => 'job_invocations_targeting_id'
    add_foreign_key :job_invocations, :targetings, :name => 'job_invocation_targeting_id', :column => 'targeting_id'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_remote_execution-0.3.1 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-0.3.0 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-0.2.3 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-0.2.2 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-0.2.1 db/migrate/20150708133242_add_invocation.rb