This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue May 27 13:40:34 -0700 2008 | [spejman] |
| |
MIT-LICENSE | Sun May 25 02:55:25 -0700 2008 | [fesplugas] |
| |
README | Sun May 25 02:55:25 -0700 2008 | [fesplugas] |
| |
Rakefile | Sun May 25 02:55:25 -0700 2008 | [fesplugas] |
| |
generators/ | Wed May 28 05:42:08 -0700 2008 | [spejman] |
| |
init.rb | Mon May 26 13:41:23 -0700 2008 | [fesplugas] |
| |
lib/ | Tue May 27 13:40:34 -0700 2008 | [spejman] |
| |
test/ | Sun May 25 02:55:25 -0700 2008 | [fesplugas] |
README
Simplified Fk
=============
Because adding foreign keys to your database should be easy.
Adding a foreign key:
add_foreign_key :from_table, :from_column, :to_table
Removing a foreign key:
remove_foreign_key :from_table, :from_column
**Note:** Only works on MySQL and PostgreSQL.
TODO
====
[ ] Add a task to suggest foreign keys.
Example
=======
class AddForeignKeyOnArticles < ActiveRecord::Migration
def self.up
add_foreign_key :articles, :user_id, :users
end
def self.down
remove_foreign_key :articles, :user_id
end
end
Copyright (c) 2008 Francesc Esplugas Marti, released under the MIT license



