search for: foreign_key_migration

Displaying 6 results from an estimated 6 matches for "foreign_key_migration".

Did you mean: foreign_key_migrations
2006 Jul 13
6
Migrations + foreign keys
Hi all, In the AWDR author use the execute method to declare foreign keys: execute "alter table.... add constraint.... foreign key...." Is there a ruby sintax to declare a foreign key in a migration class? -- Posted via http://www.ruby-forum.com/.
2009 Jun 25
7
Join Tables
...n underscore. 2.The foreign key fields are named with the name of the table they are referencing, with _id appended. 3.The foreign key is referencing a single element in that table, so it uses the singular name. However, I''ve installed both of the following plugins: redhillonrails_core foreign_key_migrations So, as an example, let''s say I created 32 tables with the following type of information: def self.up create_table :rushing_offenses do |t| t.integer :team_id t.string :name t.integer :games t.integer :carries t.integer :net t.float :avg t....
2006 Dec 17
0
Help - I broke RadRails
Hello all, I was trying to install the foreign_key_migration plugin. It seemingly worked, but I got a message stating that I needed to install the redhillonrails_core pluging (which isn''t in the list). Now I can''t generate migrations at all. Is there some setting in RadRails where I can tell it where to find the redhillonrails plugin? Or i...
2008 Feb 11
9
Storeconfigs purge Perl
Here''s some happy-fun Perl to make your storeconfig/virtual resources day better. I probably should have written this in Ruby, but perl comes naturally :) #!/usr/bin/perl # # Perl DBI to remove all related entries from Puppet''s storeconfigs database. # Use when a host is removed from the Puppet network forcibly # Alternatives: run puppet on host to be removed with a blank
2009 Jul 04
9
prevent orphan records
If I have belongs_to :user Do I need to have validates_presence_of :user_id ? Does Rails validate the presence of :user_id automatically if I have belongs_to :user? In other words, does Rails prevent against creating orphan records that belong to non-existent users? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 May 25
24
Make these a prt of Ruby on Rails!
3 things that should be part of the main Rails tree: http://www.redhillconsulting.com.au/rails_plugins.html Views? -- Posted via http://www.ruby-forum.com/.