Sha256: f4818e9186041b7e0c0349bcf4225e2584eb0ab8af595c5fd96fcdd7a3d11eb6

Contents?: true

Size: 426 Bytes

Versions: 16

Compression:

Stored size: 426 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, :limit => 255
    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

16 entries across 16 versions & 1 rubygems

Version Path
foreman_remote_execution-1.3.7 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.3.6 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.4.1 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.3.5 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.3.4 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.3.3 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.3.2 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.3.1 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.3.0 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.2.2 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.2.1 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.2.0 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.1.1 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.1.0 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-1.0.0 db/migrate/20150708133242_add_invocation.rb
foreman_remote_execution-0.3.2 db/migrate/20150708133242_add_invocation.rb