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.

Adrien Pestel's latest activity

Saturday, August 08 2009
3004 has_many + foreign_key in ActiveRecord class not working was updated in Ruby on Rails
  • Adrien Pestel
    Adrien Pestel commented at 11:58 PM

    The id field was setted up as uppercase in the original database...

    I've added set_primary_key :ID in each models.
    It works now.

    The ticket can be closed sorry ...

Friday, August 07 2009
3004 has_many + foreign_key in ActiveRecord class not working was updated in Ruby on Rails
  • Adrien Pestel
    Adrien Pestel commented at 4:19 PM

    Mysql version 5.0.51a

  • Adrien Pestel
    Adrien Pestel created the ticket at 4:12 PM

    Hi,

    class Entity < ActiveRecord::Base
    set_table_name("glpi_entities") has_many :trackings, :class_name => "Tracking", :foreign_key => "FK_entities" end

    class Tr...