Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Object not loading on save in PosgreSQL schema

#6118

Attached a patch for ActiveRecord tests that confirms this behaviour.

Saving an object under a Postgresql's schema doesn't update the object.

create_table "doodles", :force => true do |t|
  t.string   "name"
  t.datetime "created_at"
  t.datetime "updated_at"
end

I get the following weird behaviour when trying to save the object

ruby-1.9.2-p0 > db.schema_search_path = "one"
 => "one" 
ruby-1.9.2-p0 > db.schema_search_path
 => "one" 
ruby-1.9.2-p0 > @d = Doodle.new
 => #<Doodle id: nil, name: nil> 
ruby-1.9.2-p0 > @d.name = "bob"
 => "bob" 
ruby-1.9.2-p0 > @d.save
 => true 
ruby-1.9.2-p0 > @d.errors
 => {} 
ruby-1.9.2-p0 > @d.id
 => nil 
ruby-1.9.2-p0 > Doodle.last
 => #<Doodle id: 14, name: "bob"> 
ruby-1.9.2-p0 > Doodle.last.id
 => 14 
ruby-1.9.2-p0 > 

Reported by Aleksandar Simic · December 5th, 2010 @ 09:07 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Aleksandar Simic
    Aleksandar Simic

    This is on rails 3.0.3 and 3.0.4

    December 8th, 2010 @ 09:45 PM

  2. rails
    rails
    • State changed from new to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    March 9th, 2011 @ 12:00 AM

  3. rails
    rails
    • State changed from open to stale

    March 9th, 2011 @ 12:00 AM