Skip to content

Remarkable Macros for Foreign Keys #3

@hosh

Description

@hosh

Implement Remarkable Macros for Foreign keys

describe Model do
  describe "when working with schema" do
    it { should have_reference_to :collections }
    it { should have_foreign_key_constraint_to :collections, :name => 'blah' }
  end
end

Some alternatives:

it { should reference :collection }
it { should constrain_foreign_key_to :collection }

Will need to figure out some good semantics and syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions