aboutsummaryrefslogtreecommitdiffstats
path: root/test/database
diff options
context:
space:
mode:
Diffstat (limited to 'test/database')
-rw-r--r--test/database/setup.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/database/setup.rb b/test/database/setup.rb
new file mode 100644
index 0000000000..21ede8f49c
--- /dev/null
+++ b/test/database/setup.rb
@@ -0,0 +1,4 @@
+require "active_file/migration"
+
+ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
+ActiveFile::CreateBlobs.migrate(:up)