Sha256: 28890cd8a2c6a0c69bbc9d2bb5afba53eb986f918ae2d32f75795b755ddfb8ad
Contents?: true
Size: 451 Bytes
Versions: 40
Compression:
Stored size: 451 Bytes
Contents
class CreateUserProjectJobs < ActiveRecord::Migration def change create_table :user_project_jobs do |t| t.references :user, index: true, foreign_key: true, null: false t.references :project, index: true, foreign_key: true, null: false t.references :job, index: true, foreign_key: true, null: false t.timestamps null: false end add_index :user_project_jobs, [:user_id,:project_id,:job_id], unique: true end end
Version data entries
40 entries across 40 versions & 2 rubygems