search for: warning_id

Displaying 1 result from an estimated 1 matches for "warning_id".

2006 Dec 29
4
Strange HABTM behavior against SQL Server (AR 1.14.4)
...Number warning.rb: class Warning < ActiveRecord::Base has_and_belongs_to_many :jobs, :association_foreign_key => ''JobReferenceNumber'' jobs_warnings table migration: create_table :jobs_warnings do |t| t.column :JobReferenceNumber, :integer, :null => false t.column :warning_id, :integer, :null => false end What I find in both my app. and ruby script/console is the following: If I run the following three statements against a saved Job object j with JobReferenceNumber 550, and an _empty_ jobs_warnings table: j.warnings << Warning.find(3) j.warnings << War...