TheCorrespondingSquares/chess-app

View on GitHub
db/migrate/20170713203749_add_indexes_to_pieces.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddIndexesToPieces < ActiveRecord::Migration[5.0]
  def change
    add_index :pieces, :color
    add_index :pieces, :captured
    add_index :pieces, [:x_pos, :y_pos]
  end
end