TheCorrespondingSquares/chess-app

View on GitHub
db/migrate/20170529080344_removecolumnsfromgames.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Removecolumnsfromgames < ActiveRecord::Migration[5.0]
  def change
      remove_column :games, :private, :boolean
      remove_column :games, :user_id, :integer
      add_column :games, :white_player, :integer
      add_column :games, :black_player, :integer
      add_column :games, :result, :string
  end
end