Created
December 3, 2008 00:07
-
-
Save jmhodges/31356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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