1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/test/database/setup.rb
2020-04-24 13:16:16 -04:00

9 lines
332 B
Ruby

# frozen_string_literal: true
require_relative "create_users_migration"
require_relative "create_groups_migration"
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
ActiveRecord::Base.connection.migration_context.migrate
ActiveStorageCreateUsers.migrate(:up)
ActiveStorageCreateGroups.migrate(:up)