Skip to content
No description, website, or topics provided.
Ruby HTML CSS JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Adding Foreign Keys

This repo shows how to add tables and assign foreign key constraints when the table name and foreign key columns differ.

Learn Stuff

The app has 3 models: User, Course, and Enrollment. These models allow us to express a teacher student relationship by way of a course.

Migrations

Course Creation Enrollment Creation

These illustrate the foreign key options.

You can’t perform that action at this time.