Rails db integer column name problems

Hello
For my new app (using ror) I have my db (reservations table) with column
types like,

create_table :reservations do |t|
  t.date :date
  t.boolean :availability, :default => "false"
  t.integer :count
  t.string :"0630"
  t.string :"0700"
  t.timestamps
end

end

def self.down
drop_table :reservations
end

Now when I create a new reservation. a=Reservation.new and try to set
a.0700=booked ruby doesnt let me do that –
ruby-1.8.7-p334 :098 > b.0700=booked
SyntaxError: compile error
(irb):98: no . floating literal anymore; put 0 before dot
b.0700=booked
^
(irb):98: syntax error, unexpected tINTEGER
b.0700=booked
^
from (irb):98

I have tried escaping the date like \0945 it still doesnt let me. Can I
not have columns beginning with integers, Is this something I cannot do
?

this is how my schema looks –
create_table “reservations”, :force => true do |t|
t.date “date”
t.boolean “availability”, :default => true
t.integer “count”
t.string “0630”
t.string “0637”
t.string “0645”
t.string “0652”
t.string “0700”

Please help…

Thanks
AJ

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs