In my app I have teams and each team has a game time every week. I want the game times to be set to \'now\' as a default. My table is set up like so
create_
for Postgresql :
add_column :users, :msgs_seen_at, 'TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP'
but you'll have to use user.reload after user = User.create in order to "see" msgs_seen_at
user.reload
user = User.create