diff options
Diffstat (limited to 'activestorage/test/database/setup.rb')
-rw-r--r-- | activestorage/test/database/setup.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activestorage/test/database/setup.rb b/activestorage/test/database/setup.rb new file mode 100644 index 0000000000..610b927cc3 --- /dev/null +++ b/activestorage/test/database/setup.rb @@ -0,0 +1,5 @@ +require_relative "create_users_migration" + +ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") +ActiveRecord::Migrator.migrate File.expand_path("../../../db/migrate", __FILE__) +ActiveStorageCreateUsers.migrate(:up) |