I''m using postgresql, I found some problems when running unittest. file: db/migrate/001_create_post.rb: -------------------------------------------------------- class CreatePosts < ActiveRecord::Migration def self.up execute <<-EOS create table posts ( id serial not null primary key, title varchar(255), created_at timestamp not null default current_timestamp ); EOS end def self.down drop_table :posts end end -------------------------------------------------------- when execute "rake migrate", no problem. but execute "rake db:test:prepare", the default value "default current_timestamp" not apply to field "created_at". --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---