I have been working through an upgrade of my 1.2.6 application to
I am almost there but I have hit a problem with ActiveRecord.
Before the upgrade, the following code was working fine.
def create_root(administrator) root = create_root_collection(self.pingee_name, administrator, GlobalAccessibility.new, OwnerAccessibility.new) root.save self.root = root end
But now I get am getting an exception “undefined method `each’ for
true:TrueClass” when root.save is executed.
fyi, the “create_root_collection” method creates a “root” object and
assigns new object to its “belongs to” association.
I have traced it through carefully and it is definitely failing when
trying to save the “root” object itself.
Given the error message, and the fact that the root object contains
boolean columns, I wonder if the problem is to do with the saving
boolean values. I am using MySQL and declaring the boolean columns in
the following way (using raw SQL not migrations currently):
include_parent_responses boolean default false not null,
Is the “boolean” column type still valid?