crowdAI/crowdai

View on GitHub
doc/technical/archived_migrations/20160506095246_create_challenge_downloads.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateChallengeDownloads < ActiveRecord::Migration
  def change
    create_table :challenge_downloads do |t|
      t.references :challenge, index: true, foreign_key: true
      t.references :participant, index: true, foreign_key: true
      t.references :dataset_file, index: true, foreign_key: true
      t.string :ip_address

      t.timestamps null: false
    end
  end
end