--- sqlite_adapter.rb 2008-04-22 13:29:35.000000000 -0500 +++ /tmp/sqlite_adapter.rb 2008-05-14 12:49:36.000000000 -0500 @@ -214,6 +214,8 @@ end def add_column(table_name, column_name, type, options = {}) #:nodoc: + raise StatementInvalid, 'Cannot add columns to a SQLite database while inside a transaction' if + ActiveRecord::Base.connection.instance_variable_get(:@connection).transaction_active? super(table_name, column_name, type, options) # See last paragraph on http://www.sqlite.org/lang_altertable.html execute "VACUUM"