You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
324 B

class AddMissingColumnsToPlayers < ActiveRecord::Migration[8.1]
def change
add_column :players, :name, :text
add_column :players, :score, :integer
add_column :players, :answer_cache, :integer, array: true, default: []
add_index :players, :answer_cache, using: :gin
add_index :players, :score
end
end