forked from dwilkie/foreigner
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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
Labels
No labels