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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -