Skip to content
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: