JackC
Not a member
JackC's latest activity
Tuesday, November 30 2010
-
- Tag changed from activerecord, has_many_through, module, namespace to activerecord, documentation, has_many_through, module, namespace
On further investigation, setting :class_name on the has_many :through relationship actually works.
The problem is actually in the documentation. The docs say t...
-
JackC created the ticket at 10:03 PMclass Person < ActiveRecord::Base has_many :manager_roles, :class_name => "Organization::Department" has_many :departments, :through => :manager_roles end ...
-
JackC created the ticket at 5:22 PMCannot query a table by an enumerated field.
For example, when gender is a PostgreSQL enum:
irb(main):004:0> Person.where(:gender => "male").first NoMethodErro...
Friday, November 19 2010
-
JackC commented at 9:41 PMI have the same issue as MikZ. Wrong time zone setting is breaking a view that does time calculations.
A workaround appears to be adding the following line to a...
Thursday, October 21 2010
-
- Tag changed from foreign key constraint destroy 3.0, has_and_belongs_to_many to foreign key, rails 3.0.0, constraint, destroy, has_and_belongs_to_many
-
JackC created the ticket at 2:00 PMDestroying a record with a has_and_belongs_to_many association fails if the join table has foreign key constraints. On Rails 2.3.X the association is cleared pr...
Saturday, October 09 2010
-
- Tag changed from pg_dump postgresql 9.0 ident, 2.3.x to pg_dump postgresql 9.0 ident, 2.3.x, minor
A simple workaround is to explicitly include username in database.yml.
-
JackC created the ticket at 10:20 PMrake db:structure:dump fails with PostgreSQL 9.0 and ident authentication.
pg_dump: [archiver (db)] connection to database "myproject_development" failed: FATAL...
Monday, June 07 2010
-
JackC created the ticket at 6:47 PMWhen using Rails 2.3.8 and rails_xss plugin create a view with the following line in it.
<%= 'text with the word raw in it fails' %>
It will crash.
I think the ...
Thursday, November 19 2009
-
JackC created the ticket at 4:11 PMActiveRecord can automatically convert times from UTC in the database to the local time zone. ActiveResource automatically converts times it receives over the w...