-
Notifications
You must be signed in to change notification settings - Fork 74
Migrations
Dyego Costa edited this page Aug 5, 2015
·
1 revision
You can use use the migration generator to create a new Sequel migration to modify your database schema.
Create a new migration like:
$ pliny-generate migration "add phone to artists"
created migration ./db/migrate/1438776880_add_phone_to_artists.rb
It will create an empty migration:
Sequel.migration do
up do
end
down do
end
end
You can edit the migration to suit your needs and then run it with:
$ rake db:migrate
Further reading:
Basics
Diving in
- bin/setup
- Config
- CORS
- Endpoints
- Error Handling
- Logging
- Models
- Mediators
- Migrations
- Rake Tasks
- Request IDs
- RequestStore
- Schema
- Serialization
- Testing
- Updating
Guides