crowdAI/crowdai

View on GitHub
doc/technical/archived_migrations/20160208213843_create_user_competitions.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateUserCompetitions < ActiveRecord::Migration
  def change
    create_table :user_competitions do |t|
      t.references :user, index: true, foreign_key: true
      t.references :competition, index: true, foreign_key: true
      t.boolean :rules_accepted

      t.timestamps null: false
    end
  end
end