Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Foreign Key request #50

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Conversation

avillagran
Copy link

Hi!

I added Foreign Key creation, some examples:

migration 1, :create_people_table do
  up do
    create_table :jobs do
      column :id,   Integer, :serial => true
      column :name, String
    end
    create_table :people do
      column :id,   Integer, :serial => true
      column :desc, String
      column :job_id
    end

    modify_table :people do
      add_foreign_key :job_id, :jobs
    end
  end

  down do
    modify_table :people do
      drop_foreign_key :jobs
    end
  end
end

@tpitale
Copy link
Member

tpitale commented Feb 7, 2016

@avillagran Would you mind rebasing against master and I'll take a look at this? Thanks!

@tpitale
Copy link
Member

tpitale commented May 24, 2016

I think this is going to have to wait until after dm-core 1.3.0 stable is released.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants