spec/support/integration/user.rb in paperclip-storage-ftp-1.2.4 vs spec/support/integration/user.rb in paperclip-storage-ftp-1.2.5
- old
+ new
@@ -1,7 +1,9 @@
require "active_record"
+ActiveRecord::Base.raise_in_transactional_callbacks = true
+
ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
:database => ":memory:"
)
@@ -11,9 +13,11 @@
add_column :users, :avatar_file_name, :string
add_column :users, :avatar_content_type, :string
add_column :users, :avatar_file_size, :integer
add_column :users, :avatar_updated_at, :datetime
end
+
+
class UserBase < ActiveRecord::Base
include Paperclip::Glue
self.table_name = "users"