Topic: modifying active record files

I'm reading through Agile Web Dev by Thomas. I'm trying to get the auto timestamp to work. I tried putting this bit of code in my environment.rb

ActiveRecord::Base.default_timezone = :utc

like he says, but the server won't start and I get an error when I type script/server into the command.

Am I putting that line of code in the wrong spot?