chef/supermarket

View on GitHub
src/supermarket/db/migrate/20140710203503_create_contributor_requests.rb

Summary

Maintainability
A
25 mins
Test Coverage
class CreateContributorRequests < ActiveRecord::Migration
  def change
    create_table :contributor_requests do |t|
      t.integer :organization_id, null: false
      t.integer :user_id, null: false

      t.timestamps
    end

    add_index :contributor_requests, [:organization_id, :user_id], unique: true
  end
end