Skip to content

Instantly share code, notes, and snippets.

View KaraAJC's full-sized avatar
🦄
werk

Kara A Carrell KaraAJC

🦄
werk
View GitHub Profile

Step by Step CRUD

##Commands to remember:

  1. Bundle Install
  2. BE rake -T
  3. BE rake console # Start IRB with application environment loaded
  4. rake db:create # Create the databases at hr-sinatra-refactor-challenge_development
  5. rake db:drop # Drop the database at hr-sinatra-refactor-challenge_development
  6. rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
  7. rake db:reset # Drop, create, and migrate the database

Step by Step CRUD

Understand the Domain

  1. Discuss the domain (with others or yourself).
  2. Write down the user stories (features that you plan to support).
  3. Develop an understand of how each noun (model/table) will relate to each other.

Schema

  1. Draw the schema. Don't name any join tables as the combination of two other tables, find a unique noun.
  2. Double check your schema for any columns that don't follow convention (e.g. foreign keys should end in _id).
@KaraAJC
KaraAJC / installfest.md
Last active February 19, 2018 21:25 — forked from JYoung217/installfest.md
Install Fest!

Installfest

So, you got yourself a new laptop, eh? Good for you! lets have an installfest party!

What we'll cover

  1. xcode!
  2. System Updates
  3. Dotfiles
  4. subl
  5. Understanding the Unix Environment
@KaraAJC
KaraAJC / README.md
Created October 16, 2017 18:07 — forked from dragonai/README.md
GitHub Organization Open Pull Requests

##Preview

Description

Simple Dashing widget that displays all currently open pull requests across a GitHub organization.

##Usage