porkchopclub/porkchop

View on GitHub
db/migrate/20150313024657_create_elo_ratings.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateEloRatings < ActiveRecord::Migration
  def change
    create_table :elo_ratings do |t|
      t.belongs_to :player, index: true
      t.integer :rating

      t.timestamps null: false
    end
    add_foreign_key :elo_ratings, :players
  end
end