Sha256: 67faa03752a939419c89da43512e25073225aa5677a8fdfb0b482477c52e5a4f
Contents?: true
Size: 411 Bytes
Versions: 12
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
12 entries across 12 versions & 1 rubygems