Displaying 2 results from an estimated 2 matches for "beeorder".
2006 Jan 18
3
legacy database on remote host
...eRecord::Base
set_table_name :child
set_primary_key :item_number
belongs_to :parent,
:foreign_key =>
''order_number'',
:class_name
=> BeeOrder
end
development:
adapter: mysql
database: legacy_test
username: john
password: doe
# socket: /var/lib/mysql/mysql.sock
host: my_host
port: 3306
I"ve been pulling my hair out for a week trying to get this legacy
database working! Please help!
--
Posted via http://www.ruby-for...
2006 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a
terrible time getting the models set up correctly. I have an order
table that has a primary field named order_number. I have a name table
with a primary of item_number. These two tables are liked by the
item_number and the order_number, but not as you might think. If the
order_number is 2500, then each entry in