... | ... | @@ -5,13 +5,13 @@ In production we use a MySQL database. Initializing the database can be done by |
|
|
For development we use an SQLite database. There are seeds defined to initialize the database with some users, courses, etc. Seeds can be found in `/db/seeds/development/*.rb`. Whenever new features are added, the seeds should be updated accordingly.
|
|
|
|
|
|
#### Creating the database
|
|
|
`bundle exec rake db:setup`
|
|
|
`bundle exec rails db:setup`
|
|
|
|
|
|
#### Running migrations
|
|
|
`bundle exec rake db:migrate`
|
|
|
`bundle exec rails db:migrate`
|
|
|
|
|
|
#### Deleting the database
|
|
|
`bundle exec rake db:drop`
|
|
|
`bundle exec rails db:drop`
|
|
|
|
|
|
## Test database
|
|
|
The tests use their own database, which is built from fixtures. All database entries are defined in `/test/fixtures/*.yml`. See http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html for more information on fixtures. |
|
|
\ No newline at end of file |