Skip to content

Instantly share code, notes, and snippets.

@jmhodges
Created December 3, 2008 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jmhodges/31356 to your computer and use it in GitHub Desktop.
Save jmhodges/31356 to your computer and use it in GitHub Desktop.
# When run from `rake sequel:db:migrate && rake sequel:db:migrate VERSION=0`
# in a merb app with the sqlite adapter, raises:
# rake aborted!
# SQLite3::SQLException cannot start a transaction within a transaction
class AddFoosMigration < Sequel::Migration
# This is an intentionally bogus migration that demonstrates the problem
# where two would be needed if this was well-written.
def up
create_table :foos do
primary_key :id
string :name
end
end
def down
drop_column :foos, :name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment