In ActiveRecord 3.1.0.rc4, setting the id manually no longer works -
the assignment seems to be ignored. Is this expected behavior? Seems
to break BC

create_table :posts, :id => false do |t|
    t.string :id, :limit => 36, :primary => true, :null => false
    t.string :title
end

 > @post = Post.new
 > @post.id = "abc123"
 > @post.id
   => nil

 > @post.save!
    => Fails because id is nil/null (obviously)

Thoughts?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to