similar to: Active Record - Can''t figure out relationship.

Displaying 20 results from an estimated 100 matches similar to: "Active Record - Can''t figure out relationship."

2006 May 14
3
Strange Database Mapping Question
Dear Rails List, I am new on the list so will assume straight away that this question has been answered before. As I can see no immediate way of searching the list, I will ask the question. I apologize in advance for any disruption this may cause. Question time: I am trying to write a web application for the staff at my office to play a form of virtual Super14. Its a bit like any of the
2007 Jun 09
7
create 2 fk referencing the same table
Hi everyone! I have a problem with defining 2 fk referencing the same table. I have a Program table and a Team table. The Program should have an away team and a home team fk. From my understanding, "the fk column should be named after the class of the target table, converted to lowercase, with _id appended". But, in my case, I have 2 fk referencing the same table. How can I do this?
2007 Oct 16
8
Using multiple foreign keys in views
I have a model, Game, that has_many :teams. There''s a home team and an away team. I created two foreign keys, so each game can have two teams associated with it. Here''s the Team model: class Team < ActiveRecord::Base belongs_to :game, :class_name => ''Game'', :foreign_key => ''hometeam_id'' belongs_to :game, :class_name =>
2009 Jul 29
5
[newbie] double relationships in database
I have the following tables teams id :string name :string and matches id: home_team :team_id visitor_team :team_id how can I reflect that kind of relationship in a RoR model? thanks and keep up the good work.
2004 Aug 07
1
end_modal question
Really stupid question, but have you wrapped this all in an App class? If you don''t have a wxApp subclass driving your applications then all sorts of badness would happen. > I''m writing a custom little application for my boss''s high school > football team to track there stats play by play. > > My problem is that when I start the application, it
2008 Oct 07
6
Hpricot loop question to read table row values
Hi. I''ve got a file that contains a table that looks like this: <table> <tr><td>column title a</td><td>column title b</td></tr> <tr><td>row 1 a</td><td>row 1 b</td></tr> <tr><td>row 2 a</td><td>row 2 b</td></tr> <tr><td>row 3 a</td><td>row 3
2020 Jul 10
3
OpenSSH not requesting PIN code for YubiKey
I set up the YubiKey with OpenSSH 8.2 (Ubuntu client and server) and it works. However, it does not do PIN enforcement at SSH login. It only requests the PIN during the set-up process (when the key is being generated). Is that the way it's supposed to work? Frank
2020 Jul 19
2
OpenSSH not requesting touch on FIDO keys (was: OpenSSH not requesting PIN code for YubiKey)
On Mon, Jul 13, 2020 at 01:34:37PM +1000, Damien Miller wrote: > On Fri, 10 Jul 2020, Frank Sharkey wrote: > > > I set up the YubiKey with OpenSSH 8.2 (Ubuntu client and server) and it > > works. However, it does not do PIN enforcement at SSH login. It only > > requests the PIN during the set-up process (when the key is being > > generated). Is that the way it's
2008 Jan 05
3
user-space heartbeat ptaches from suse
Hi everyone. Does anyone know why the user-space heartbeat (linux-ha) patches from SuSE / Novell are not commited to the mainline ocfs2 source tree? Or are they? Is there an easy way (which does not break the distros package management) to apply these? Thanks, Christian
2009 Jan 08
5
There is already an object named 'schema_migrations' in the database
I''ve created a table in a SQL Server database using a migration, successfully. I''ve tried to change the name of a column in the table and got the error message above when running ''rake db:migrate''. Previously I have developed using MySQL and Sqlite and migrations have worked successfully. This is an error I have not seen before. Has anybody seen this and worked
2004 Nov 16
1
Samba Won't Work
I tried to get Samba running on my new Trustix installation all day yesterday with no luck. I'm a newbie, so there's a lot I don't know yet. At any rate, I have the Smb, nmbd, and smbd services running. I've got my smb.conf file set up properly from what I can tell. When I try the following command on my Linux box: smbclient //192.168.1.102/backup -U jesse I get the error,
2008 Sep 08
2
Sieve, and logging.
Hi All, Relatively new to Dovecot - converting from courier-imap. So far, I've got it working with virtual users (postfixadmin tables), and it seems to be working. I'm trying to get sieve working. It's not, so I tried turning up the logging, and putting it into a separate log file to get it out of the syslog for now. I can get the main dovecot to log, but I cannot get any log
2004 Oct 12
1
Problems with CentOS 3.3 Disk2 Iso Image?
Hi All, I've downloaded this image (disk 2) from several sites, and it matches the MD5 sum. Burning it to a CD gives no errors, but the disk is failing the self-check at the start, and if I ignore that and try to install I get random packages which "cannot be read". I know the burner is OK, as I've burned other CDs on it just fine after burning the CentOS ones. Any
2005 Jun 27
1
One Touch Backups for Centos?
Hi All, Does anyone have any experience with the external "one touch" backup solutions for CentOS? I'm not expecting the software to work, that would be a miracle. But does anyone know if the hardware is compatible? Recommendations welcome. -Scott
2005 Jun 28
1
Web Proxy/Monitoring Software?
Hi All, I have a need for a service or software that will monitor and track outbound HTTP (web) accesses, and report what pages are being visited. I know that Squid theoretically can do this, but it seems like overkill for this application. The user could care less about caching - they just want to monitor what URL's their staff is visiting. IS squid the best option, or is there
2006 Sep 29
1
How to Upgrade CentOS 3.8 to CentOS 4.4?
Is this possible/recommended? Or is it preferable to rebuild from scratch? I would prefer not to rebuild, but wanted to see what people thought. -scott
2006 Dec 12
1
Authenticating to a MacOS X server
Hello I am currently testing Fedora Core 6 i386 on a moderately sized network (with the permission of the system administrator), with 150 or so computers, some running Mac OSX and others running NT 4.0. As to the storage of personal files and authentication, there is both a NT 4.0 server (for the NT 4.0 machines to authenticate to) and a Mac OSX server (for the Mac OS X machines to
2020 Jul 20
2
OpenSSH not requesting touch on FIDO keys (was: OpenSSH not requesting PIN code for YubiKey)
On Mon, Jul 20, 2020 at 09:27:16AM +1000, Damien Miller wrote: > On Sun, 19 Jul 2020, Domenico Andreoli wrote: > > > On Mon, Jul 13, 2020 at 01:34:37PM +1000, Damien Miller wrote: > > > On Fri, 10 Jul 2020, Frank Sharkey wrote: > > > > > > > I set up the YubiKey with OpenSSH 8.2 (Ubuntu client and server) and it > > > > works. However, it
2004 Aug 06
2
Problems with xmms & freeamp
Hi all, I've just set up a test icecast2 server (download and compiled from cvs about an hour ago) - very simple setup, all it does is use ices to stream in an .ogg file that I converted from an mp3, using mpg123 & oggenc. (I've used the sample conf files with the directory stuff removed. I've also tried it with and without the re-encoding lines from the ices-playlist.xml file).
2006 Jan 30
0
Help - iSCSI and SAMBA?
Hi All, I have a client trying to us a Promise Tech iSCSI array to share 2.8TB via SAMBA. I have CentOS 4.2 with all updates installed on an IBM server. The installation and setup was pretty straightforward. The Promise box is using Gigabit Ethernet, and is the only device on that net (I think they are using a cross-over cable - I didn't set up the hardware). We're experiencing