Sha256: d1f796af16217aa62963f58f2bc1a7c2cbaa1eabfdda857cb09a5343891d9b0e

Contents?: true

Size: 216 Bytes

Versions: 5

Compression:

Stored size: 216 Bytes

Contents

class AddReferencesToProjects < ActiveRecord::Migration[5.0]
  def change
    add_reference :projects, :team, foreign_key: true, null: true
    add_reference :projects, :user, foreign_key: true, null: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jobs-api-0.2.1 db/migrate/20161109205639_add_references_to_projects.rb
jobs-api-0.2.0 db/migrate/20161109205639_add_references_to_projects.rb
jobs-api-0.1.2 db/migrate/20161109205639_add_references_to_projects.rb
jobs-api-0.1.1 db/migrate/20161109205639_add_references_to_projects.rb
jobs-api-0.1.0 db/migrate/20161109205639_add_references_to_projects.rb