Cannot set column names to numbers or symbols in postgresql / rails -
i need add columns in table tournament. columns correspond specific ranking , of boolean type. rankings name in real life : 40, 30/5, 30/4, 30/3 ect ect dont think can writte migration 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 not valid column names in rails , postgresql right ? best shot rename column names correct , still easy indentify ?
Comments
Post a Comment