Displaying 4 results from an estimated 4 matches for "kbedel".
Did you mean:
bedel
2006 Jan 04
4
many to many link table compound primary key explosion
Hi,
I have a many-to-many relationship between two tables, questions and
answers. My MySQL schema for the link table creates a primary key from
the two fields to prevent duplicate records. When I add the same answer
to the same question more than once, rails attempts to create a
duplicate record and explodes with a MySQL error:
MysqlError: Duplicate entry ''3-3'' for key 1:
2005 Dec 14
6
mysql connection problems
Hi
hi i have a problem trying to connect to the mysql database when I do a
rake it says: Access denied for user: ''@localhost'' to database ''''
My database.yml file is fine
Any ideas why this is happening
--
Posted via http://www.ruby-forum.com/.
2011 Sep 12
4
EngineYard deploy - Vanilla Database
Hi folks,
Just after a ''best-practise'' recommendation here really, I am
deploying a series of applications to EY and for each one, need to
setup the database with some default settings / user account etc etc.
What is the best way to write a few initial rows to a vanilla
database? I''ve looked into using the deploy hooks on EY but it doesn''t
seem to cover DB
2011 Sep 11
5
question about a where condition
Hey all,
This example of working code:
@a = @b.where(:a_group_id.ne => nil).collect { |b| b.a_group }
doesn''t make too much sense to me. For one, I am not sure what that
"ne" is doing there. Is this a postgresql thing? Second, it looks like
we are collecting active record objects where the a_group_id is null,
collecting them in an array and then invoking the a_group