#Adding DB to hangman Adding a DB to hangman for homework.
This folder structure should be suitable for starting a project that uses a database:
- Clone the repo
rake generate:migration <Name>
to create a migrationrake db:migrate
to run it- Create models
- ... ?
- Profit
You may need to fiddle around with remotes assuming that you don't want to push to this one (which you probably don't).
.
├── Gemfile # Details which gems are required by the project
├── README.md # This file
├── Rakefile # Defines `rake generate:migration` and `db:migrate`
├── config
│ └── database.yml # Defines the database config (e.g. name of file)
├── console.rb # `ruby console.rb` starts `pry` with models loaded
├── db
│ ├── dev.sqlite3 # Default location of the database file
│ ├── migrate # Folder containing generated migrations
│ └── setup.rb # `require`ing this file sets up the db connection
└── lib # Your ruby code (models, etc.) should go here
└── all.rb # Require this file to auto-require _all_ `.rb` files in `lib`