I need to add columns in my table tournament. My columns all correspond to a specific ranking and are of boolean type. My rankings name in real life look like : 40, 30/5, 30/4, 30/3 ect ect But I dont think I can writte a migration like this in rails :
class AddRankingsToTournaments < ActiveRecord::Migration
def change
add_column :tournaments, :40, :boolean
add_column :tournaments, :30/5, :boolean
add_column :tournaments, :30/3, :boolean
end
end
This would not be valid column names in rails and postgresql right ? What would be my best shot to rename my column names to something correct and still easy to indentify ?