Displaying 1 result from an estimated 1 matches for "jobs_warn".
2006 Dec 29
4
Strange HABTM behavior against SQL Server (AR 1.14.4)
...gs_to_many :warnings, :foreign_key =>
''JobReferenceNumber''
set_table_name :JobData
set_primary_key :JobReferenceNumber
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...