Skip to content

Instantly share code, notes, and snippets.

@fairchild
Created October 17, 2008 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fairchild/17496 to your computer and use it in GitHub Desktop.
Save fairchild/17496 to your computer and use it in GitHub Desktop.
class TicketNumbersMigration < Sequel::Migration
def up
alter_table(:tickets) do
add_column 'number', :integer
end
end
def down
alter_table(:tickets) do
drop_column 'number'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment