├── .github ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .rubocop.yml ├── .ruby-version ├── CHANGELOG.md ├── CONTRIBUTING.md ├── GUIDE.md ├── Gemfile ├── Gemfile.lock ├── MIT-LICENSE ├── README.md ├── Rakefile ├── activerecord-tenanted.gemspec ├── bin ├── ci ├── irb ├── rake ├── rdbg ├── rubocop ├── test-integration └── test-unit ├── lib ├── active_record │ ├── tenanted.rb │ └── tenanted │ │ ├── base.rb │ │ ├── cable_connection.rb │ │ ├── connection_adapter.rb │ │ ├── console.rb │ │ ├── database_adapter.rb │ │ ├── database_adapters │ │ └── sqlite.rb │ │ ├── database_configurations.rb │ │ ├── database_configurations │ │ ├── base_config.rb │ │ └── tenant_config.rb │ │ ├── database_tasks.rb │ │ ├── global_id.rb │ │ ├── job.rb │ │ ├── lru.rb │ │ ├── mailer.rb │ │ ├── mutex.rb │ │ ├── patches.rb │ │ ├── railtie.rb │ │ ├── relation.rb │ │ ├── storage.rb │ │ ├── subtenant.rb │ │ ├── tenant.rb │ │ ├── tenant_selector.rb │ │ ├── testing.rb │ │ ├── untenanted_connection_pool.rb │ │ └── version.rb ├── activerecord-tenanted.rb └── tasks │ └── active_record │ └── tenanted_tasks.rake └── test ├── dummy ├── Rakefile ├── app │ ├── assets │ │ ├── images │ │ │ └── .keep │ │ └── stylesheets │ │ │ └── application.css │ ├── controllers │ │ ├── application_controller.rb │ │ └── concerns │ │ │ └── .keep │ ├── helpers │ │ └── application_helper.rb │ ├── jobs │ │ └── application_job.rb │ ├── mailers │ │ └── application_mailer.rb │ ├── models │ │ ├── application_record.rb │ │ └── concerns │ │ │ └── .keep │ └── views │ │ ├── layouts │ │ ├── application.html.erb │ │ ├── mailer.html.erb │ │ └── mailer.text.erb │ │ └── pwa │ │ ├── manifest.json.erb │ │ └── service-worker.js ├── bin │ ├── dev │ ├── rails │ ├── rake │ └── setup ├── config.ru ├── config │ ├── application.rb │ ├── boot.rb │ ├── cable.yml │ ├── database.yml │ ├── environment.rb │ ├── environments │ │ ├── development.rb │ │ ├── production.rb │ │ └── test.rb │ ├── initializers │ │ ├── content_security_policy.rb │ │ ├── filter_parameter_logging.rb │ │ └── inflections.rb │ ├── locales │ │ └── en.yml │ ├── puma.rb │ ├── routes.rb │ └── storage.yml ├── log │ └── .keep └── public │ ├── 400.html │ ├── 404.html │ ├── 406-unsupported-browser.html │ ├── 422.html │ ├── 500.html │ ├── icon.png │ └── icon.svg ├── integration ├── app │ └── channels │ │ └── application_cable │ │ └── connection.rb ├── config │ ├── initializers │ │ └── tenanting.rb │ └── storage.yml └── test │ ├── action_cable_test.rb │ ├── active_job_test.rb │ ├── active_storage_test.rb │ ├── caching_test.rb │ ├── mailers │ └── note_mailer_test.rb │ ├── rails_records_test.rb │ ├── testcase_test.rb │ └── turbo_broadcast_test.rb ├── scenarios ├── 20250213005959_add_age_to_users.rb ├── 20250830152220_create_posts.rb ├── 20250830170325_add_announcement_to_users.rb ├── 20250830175957_add_announceable_to_users.rb ├── primary_db │ ├── database.yml │ ├── primary_record.rb │ ├── secondary_record.rb │ ├── shared_migrations │ │ └── 20250203191207_create_announcements.rb │ ├── subtenant_record.rb │ └── tenanted_migrations │ │ └── 20250203191115_create_users.rb ├── primary_named_db │ ├── database.yml │ ├── primary_record.rb │ ├── secondary_record.rb │ ├── shared_migrations │ │ └── 20250203191207_create_announcements.rb │ └── tenanted_migrations │ │ └── 20250203191115_create_users.rb ├── primary_uri_db │ ├── database.yml │ ├── primary_record.rb │ ├── secondary_record.rb │ ├── shared_migrations │ │ └── 20250203191207_create_announcements.rb │ └── tenanted_migrations │ │ └── 20250203191115_create_users.rb ├── schema.rb ├── schema_cache.yml └── secondary_db │ ├── database.yml │ ├── primary_record.rb │ ├── secondary_record.rb │ ├── shared_migrations │ └── 20250203191207_create_announcements.rb │ └── tenanted_migrations │ └── 20250203191115_create_users.rb ├── smarty ├── Procfile.dev ├── README.md ├── Rakefile ├── app │ ├── assets │ │ ├── builds │ │ │ ├── .keep │ │ │ └── tailwind.css │ │ ├── images │ │ │ └── .keep │ │ ├── stylesheets │ │ │ └── application.css │ │ └── tailwind │ │ │ └── application.css │ ├── channels │ │ ├── application_cable │ │ │ ├── channel.rb │ │ │ └── connection.rb │ │ └── ping_channel.rb │ ├── controllers │ │ ├── application_controller.rb │ │ ├── concerns │ │ │ └── .keep │ │ └── notes_controller.rb │ ├── helpers │ │ ├── application_helper.rb │ │ └── notes_helper.rb │ ├── javascript │ │ ├── application.js │ │ └── controllers │ │ │ ├── application.js │ │ │ ├── hello_controller.js │ │ │ └── index.js │ ├── jobs │ │ ├── application_job.rb │ │ └── note_cheerio_job.rb │ ├── mailers │ │ ├── application_mailer.rb │ │ └── note_mailer.rb │ ├── models │ │ ├── application_record.rb │ │ ├── concerns │ │ │ └── .keep │ │ └── note.rb │ └── views │ │ ├── layouts │ │ ├── application.html.erb │ │ ├── mailer.html.erb │ │ └── mailer.text.erb │ │ ├── note_mailer │ │ └── note_email.html.erb │ │ ├── notes │ │ ├── _form.html.erb │ │ ├── _note.html.erb │ │ ├── _note.json.jbuilder │ │ ├── edit.html.erb │ │ ├── index.html.erb │ │ ├── index.json.jbuilder │ │ ├── new.html.erb │ │ ├── show.html.erb │ │ └── show.json.jbuilder │ │ └── pwa │ │ ├── manifest.json.erb │ │ └── service-worker.js ├── bin │ ├── bundle │ ├── dev │ ├── importmap │ ├── jobs │ ├── rails │ ├── rake │ └── setup ├── config.ru ├── config │ ├── application.rb │ ├── boot.rb │ ├── cable.yml │ ├── cache.yml │ ├── credentials.yml.enc │ ├── database.yml │ ├── environment.rb │ ├── environments │ │ ├── development.rb │ │ ├── production.rb │ │ └── test.rb │ ├── importmap.rb │ ├── initializers │ │ ├── assets.rb │ │ ├── content_security_policy.rb │ │ ├── filter_parameter_logging.rb │ │ └── inflections.rb │ ├── locales │ │ └── en.yml │ ├── master.key │ ├── puma.rb │ ├── queue.yml │ ├── recurring.yml │ ├── routes.rb │ └── storage.yml ├── db │ ├── cable_schema.rb │ ├── cache_schema.rb │ ├── migrate │ │ ├── 20250220220024_create_notes.rb │ │ └── 20250222215621_create_active_storage_tables.active_storage.rb │ ├── queue_schema.rb │ └── seeds.rb ├── lib │ └── tasks │ │ └── .keep ├── log │ └── .keep ├── public │ ├── 400.html │ ├── 404.html │ ├── 406-unsupported-browser.html │ ├── 422.html │ ├── 500.html │ ├── icon.png │ ├── icon.svg │ └── robots.txt ├── script │ └── .keep ├── test │ ├── application_system_test_case.rb │ ├── channels │ │ └── ping_channel_test.rb │ ├── controllers │ │ ├── .keep │ │ └── notes_controller_test.rb │ ├── fixtures │ │ ├── files │ │ │ ├── .keep │ │ │ └── goruco.jpg │ │ └── notes.yml │ ├── helpers │ │ └── .keep │ ├── integration │ │ └── .keep │ ├── jobs │ │ └── note_cheerio_job_test.rb │ ├── mailers │ │ ├── .keep │ │ ├── note_mailer_test.rb │ │ └── previews │ │ │ └── note_mailer_preview.rb │ ├── models │ │ ├── .keep │ │ └── note_test.rb │ ├── system │ │ ├── .keep │ │ └── notes_test.rb │ └── test_helper.rb └── vendor │ ├── .keep │ └── javascript │ └── .keep ├── test_helper.rb └── unit ├── base_test.rb ├── basic_test.rb ├── connection_adapter_test.rb ├── database_adapter_test.rb ├── database_adapters_sqlite_test.rb ├── database_configurations_test.rb ├── database_tasks_test.rb ├── global_id_test.rb ├── job_test.rb ├── lru_test.rb ├── mutex_test.rb ├── storage_test.rb ├── subtenant_test.rb ├── tenant_selector_test.rb ├── tenant_test.rb ├── tenanted_test.rb └── untenanted_connection_pool_test.rb /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/.gitignore -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.4.5 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /GUIDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/GUIDE.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /MIT-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/MIT-LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/Rakefile -------------------------------------------------------------------------------- /activerecord-tenanted.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/activerecord-tenanted.gemspec -------------------------------------------------------------------------------- /bin/ci: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/bin/ci -------------------------------------------------------------------------------- /bin/irb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/bin/irb -------------------------------------------------------------------------------- /bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/bin/rake -------------------------------------------------------------------------------- /bin/rdbg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/bin/rdbg -------------------------------------------------------------------------------- /bin/rubocop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/bin/rubocop -------------------------------------------------------------------------------- /bin/test-integration: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/bin/test-integration -------------------------------------------------------------------------------- /bin/test-unit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/bin/test-unit -------------------------------------------------------------------------------- /lib/active_record/tenanted.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/base.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/cable_connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/cable_connection.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/connection_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/connection_adapter.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/console.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/console.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/database_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/database_adapter.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/database_adapters/sqlite.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/database_adapters/sqlite.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/database_configurations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/database_configurations.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/database_configurations/base_config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/database_configurations/base_config.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/database_configurations/tenant_config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/database_configurations/tenant_config.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/database_tasks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/database_tasks.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/global_id.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/global_id.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/job.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/job.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/lru.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/lru.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/mailer.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/mutex.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/mutex.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/patches.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/patches.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/railtie.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/relation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/relation.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/storage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/storage.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/subtenant.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/subtenant.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/tenant.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/tenant.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/tenant_selector.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/tenant_selector.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/testing.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/testing.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/untenanted_connection_pool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/untenanted_connection_pool.rb -------------------------------------------------------------------------------- /lib/active_record/tenanted/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/active_record/tenanted/version.rb -------------------------------------------------------------------------------- /lib/activerecord-tenanted.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/activerecord-tenanted.rb -------------------------------------------------------------------------------- /lib/tasks/active_record/tenanted_tasks.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/lib/tasks/active_record/tenanted_tasks.rake -------------------------------------------------------------------------------- /test/dummy/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/Rakefile -------------------------------------------------------------------------------- /test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- 1 | /* Application styles */ 2 | -------------------------------------------------------------------------------- /test/dummy/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /test/dummy/app/jobs/application_job.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/app/jobs/application_job.rb -------------------------------------------------------------------------------- /test/dummy/app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/app/mailers/application_mailer.rb -------------------------------------------------------------------------------- /test/dummy/app/models/application_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/app/models/application_record.rb -------------------------------------------------------------------------------- /test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /test/dummy/app/views/layouts/mailer.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/app/views/layouts/mailer.html.erb -------------------------------------------------------------------------------- /test/dummy/app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /test/dummy/app/views/pwa/manifest.json.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/app/views/pwa/manifest.json.erb -------------------------------------------------------------------------------- /test/dummy/app/views/pwa/service-worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/app/views/pwa/service-worker.js -------------------------------------------------------------------------------- /test/dummy/bin/dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/bin/dev -------------------------------------------------------------------------------- /test/dummy/bin/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/bin/rails -------------------------------------------------------------------------------- /test/dummy/bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/bin/rake -------------------------------------------------------------------------------- /test/dummy/bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/bin/setup -------------------------------------------------------------------------------- /test/dummy/config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config.ru -------------------------------------------------------------------------------- /test/dummy/config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/application.rb -------------------------------------------------------------------------------- /test/dummy/config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/boot.rb -------------------------------------------------------------------------------- /test/dummy/config/cable.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/cable.yml -------------------------------------------------------------------------------- /test/dummy/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/database.yml -------------------------------------------------------------------------------- /test/dummy/config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/environment.rb -------------------------------------------------------------------------------- /test/dummy/config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/environments/development.rb -------------------------------------------------------------------------------- /test/dummy/config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/environments/production.rb -------------------------------------------------------------------------------- /test/dummy/config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/environments/test.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/content_security_policy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/initializers/content_security_policy.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/initializers/filter_parameter_logging.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/initializers/inflections.rb -------------------------------------------------------------------------------- /test/dummy/config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/locales/en.yml -------------------------------------------------------------------------------- /test/dummy/config/puma.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/puma.rb -------------------------------------------------------------------------------- /test/dummy/config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/routes.rb -------------------------------------------------------------------------------- /test/dummy/config/storage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/config/storage.yml -------------------------------------------------------------------------------- /test/dummy/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/public/400.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/public/400.html -------------------------------------------------------------------------------- /test/dummy/public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/public/404.html -------------------------------------------------------------------------------- /test/dummy/public/406-unsupported-browser.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/public/406-unsupported-browser.html -------------------------------------------------------------------------------- /test/dummy/public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/public/422.html -------------------------------------------------------------------------------- /test/dummy/public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/public/500.html -------------------------------------------------------------------------------- /test/dummy/public/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/public/icon.png -------------------------------------------------------------------------------- /test/dummy/public/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/dummy/public/icon.svg -------------------------------------------------------------------------------- /test/integration/app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/app/channels/application_cable/connection.rb -------------------------------------------------------------------------------- /test/integration/config/initializers/tenanting.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/config/initializers/tenanting.rb -------------------------------------------------------------------------------- /test/integration/config/storage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/config/storage.yml -------------------------------------------------------------------------------- /test/integration/test/action_cable_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/test/action_cable_test.rb -------------------------------------------------------------------------------- /test/integration/test/active_job_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/test/active_job_test.rb -------------------------------------------------------------------------------- /test/integration/test/active_storage_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/test/active_storage_test.rb -------------------------------------------------------------------------------- /test/integration/test/caching_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/test/caching_test.rb -------------------------------------------------------------------------------- /test/integration/test/mailers/note_mailer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/test/mailers/note_mailer_test.rb -------------------------------------------------------------------------------- /test/integration/test/rails_records_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/test/rails_records_test.rb -------------------------------------------------------------------------------- /test/integration/test/testcase_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/test/testcase_test.rb -------------------------------------------------------------------------------- /test/integration/test/turbo_broadcast_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/integration/test/turbo_broadcast_test.rb -------------------------------------------------------------------------------- /test/scenarios/20250213005959_add_age_to_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/20250213005959_add_age_to_users.rb -------------------------------------------------------------------------------- /test/scenarios/20250830152220_create_posts.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/20250830152220_create_posts.rb -------------------------------------------------------------------------------- /test/scenarios/20250830170325_add_announcement_to_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/20250830170325_add_announcement_to_users.rb -------------------------------------------------------------------------------- /test/scenarios/20250830175957_add_announceable_to_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/20250830175957_add_announceable_to_users.rb -------------------------------------------------------------------------------- /test/scenarios/primary_db/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_db/database.yml -------------------------------------------------------------------------------- /test/scenarios/primary_db/primary_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_db/primary_record.rb -------------------------------------------------------------------------------- /test/scenarios/primary_db/secondary_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_db/secondary_record.rb -------------------------------------------------------------------------------- /test/scenarios/primary_db/shared_migrations/20250203191207_create_announcements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_db/shared_migrations/20250203191207_create_announcements.rb -------------------------------------------------------------------------------- /test/scenarios/primary_db/subtenant_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_db/subtenant_record.rb -------------------------------------------------------------------------------- /test/scenarios/primary_db/tenanted_migrations/20250203191115_create_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_db/tenanted_migrations/20250203191115_create_users.rb -------------------------------------------------------------------------------- /test/scenarios/primary_named_db/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_named_db/database.yml -------------------------------------------------------------------------------- /test/scenarios/primary_named_db/primary_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_named_db/primary_record.rb -------------------------------------------------------------------------------- /test/scenarios/primary_named_db/secondary_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_named_db/secondary_record.rb -------------------------------------------------------------------------------- /test/scenarios/primary_named_db/shared_migrations/20250203191207_create_announcements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_named_db/shared_migrations/20250203191207_create_announcements.rb -------------------------------------------------------------------------------- /test/scenarios/primary_named_db/tenanted_migrations/20250203191115_create_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_named_db/tenanted_migrations/20250203191115_create_users.rb -------------------------------------------------------------------------------- /test/scenarios/primary_uri_db/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_uri_db/database.yml -------------------------------------------------------------------------------- /test/scenarios/primary_uri_db/primary_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_uri_db/primary_record.rb -------------------------------------------------------------------------------- /test/scenarios/primary_uri_db/secondary_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_uri_db/secondary_record.rb -------------------------------------------------------------------------------- /test/scenarios/primary_uri_db/shared_migrations/20250203191207_create_announcements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_uri_db/shared_migrations/20250203191207_create_announcements.rb -------------------------------------------------------------------------------- /test/scenarios/primary_uri_db/tenanted_migrations/20250203191115_create_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/primary_uri_db/tenanted_migrations/20250203191115_create_users.rb -------------------------------------------------------------------------------- /test/scenarios/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/schema.rb -------------------------------------------------------------------------------- /test/scenarios/schema_cache.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/schema_cache.yml -------------------------------------------------------------------------------- /test/scenarios/secondary_db/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/secondary_db/database.yml -------------------------------------------------------------------------------- /test/scenarios/secondary_db/primary_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/secondary_db/primary_record.rb -------------------------------------------------------------------------------- /test/scenarios/secondary_db/secondary_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/secondary_db/secondary_record.rb -------------------------------------------------------------------------------- /test/scenarios/secondary_db/shared_migrations/20250203191207_create_announcements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/secondary_db/shared_migrations/20250203191207_create_announcements.rb -------------------------------------------------------------------------------- /test/scenarios/secondary_db/tenanted_migrations/20250203191115_create_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/scenarios/secondary_db/tenanted_migrations/20250203191115_create_users.rb -------------------------------------------------------------------------------- /test/smarty/Procfile.dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/Procfile.dev -------------------------------------------------------------------------------- /test/smarty/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/README.md -------------------------------------------------------------------------------- /test/smarty/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/Rakefile -------------------------------------------------------------------------------- /test/smarty/app/assets/builds/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/app/assets/builds/tailwind.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/assets/builds/tailwind.css -------------------------------------------------------------------------------- /test/smarty/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/assets/stylesheets/application.css -------------------------------------------------------------------------------- /test/smarty/app/assets/tailwind/application.css: -------------------------------------------------------------------------------- 1 | @import "tailwindcss"; 2 | -------------------------------------------------------------------------------- /test/smarty/app/channels/application_cable/channel.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/channels/application_cable/channel.rb -------------------------------------------------------------------------------- /test/smarty/app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/channels/application_cable/connection.rb -------------------------------------------------------------------------------- /test/smarty/app/channels/ping_channel.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/channels/ping_channel.rb -------------------------------------------------------------------------------- /test/smarty/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /test/smarty/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/app/controllers/notes_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/controllers/notes_controller.rb -------------------------------------------------------------------------------- /test/smarty/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /test/smarty/app/helpers/notes_helper.rb: -------------------------------------------------------------------------------- 1 | module NotesHelper 2 | end 3 | -------------------------------------------------------------------------------- /test/smarty/app/javascript/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/javascript/application.js -------------------------------------------------------------------------------- /test/smarty/app/javascript/controllers/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/javascript/controllers/application.js -------------------------------------------------------------------------------- /test/smarty/app/javascript/controllers/hello_controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/javascript/controllers/hello_controller.js -------------------------------------------------------------------------------- /test/smarty/app/javascript/controllers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/javascript/controllers/index.js -------------------------------------------------------------------------------- /test/smarty/app/jobs/application_job.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/jobs/application_job.rb -------------------------------------------------------------------------------- /test/smarty/app/jobs/note_cheerio_job.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/jobs/note_cheerio_job.rb -------------------------------------------------------------------------------- /test/smarty/app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/mailers/application_mailer.rb -------------------------------------------------------------------------------- /test/smarty/app/mailers/note_mailer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/mailers/note_mailer.rb -------------------------------------------------------------------------------- /test/smarty/app/models/application_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/models/application_record.rb -------------------------------------------------------------------------------- /test/smarty/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/app/models/note.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/models/note.rb -------------------------------------------------------------------------------- /test/smarty/app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/layouts/mailer.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/layouts/mailer.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /test/smarty/app/views/note_mailer/note_email.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/note_mailer/note_email.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/notes/_form.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/_form.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/notes/_note.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/_note.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/notes/_note.json.jbuilder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/_note.json.jbuilder -------------------------------------------------------------------------------- /test/smarty/app/views/notes/edit.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/edit.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/notes/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/index.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/notes/index.json.jbuilder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/index.json.jbuilder -------------------------------------------------------------------------------- /test/smarty/app/views/notes/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/new.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/notes/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/show.html.erb -------------------------------------------------------------------------------- /test/smarty/app/views/notes/show.json.jbuilder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/notes/show.json.jbuilder -------------------------------------------------------------------------------- /test/smarty/app/views/pwa/manifest.json.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/pwa/manifest.json.erb -------------------------------------------------------------------------------- /test/smarty/app/views/pwa/service-worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/app/views/pwa/service-worker.js -------------------------------------------------------------------------------- /test/smarty/bin/bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/bin/bundle -------------------------------------------------------------------------------- /test/smarty/bin/dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/bin/dev -------------------------------------------------------------------------------- /test/smarty/bin/importmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/bin/importmap -------------------------------------------------------------------------------- /test/smarty/bin/jobs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/bin/jobs -------------------------------------------------------------------------------- /test/smarty/bin/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/bin/rails -------------------------------------------------------------------------------- /test/smarty/bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/bin/rake -------------------------------------------------------------------------------- /test/smarty/bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/bin/setup -------------------------------------------------------------------------------- /test/smarty/config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config.ru -------------------------------------------------------------------------------- /test/smarty/config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/application.rb -------------------------------------------------------------------------------- /test/smarty/config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/boot.rb -------------------------------------------------------------------------------- /test/smarty/config/cable.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/cable.yml -------------------------------------------------------------------------------- /test/smarty/config/cache.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/cache.yml -------------------------------------------------------------------------------- /test/smarty/config/credentials.yml.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/credentials.yml.enc -------------------------------------------------------------------------------- /test/smarty/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/database.yml -------------------------------------------------------------------------------- /test/smarty/config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/environment.rb -------------------------------------------------------------------------------- /test/smarty/config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/environments/development.rb -------------------------------------------------------------------------------- /test/smarty/config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/environments/production.rb -------------------------------------------------------------------------------- /test/smarty/config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/environments/test.rb -------------------------------------------------------------------------------- /test/smarty/config/importmap.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/importmap.rb -------------------------------------------------------------------------------- /test/smarty/config/initializers/assets.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/initializers/assets.rb -------------------------------------------------------------------------------- /test/smarty/config/initializers/content_security_policy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/initializers/content_security_policy.rb -------------------------------------------------------------------------------- /test/smarty/config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/initializers/filter_parameter_logging.rb -------------------------------------------------------------------------------- /test/smarty/config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/initializers/inflections.rb -------------------------------------------------------------------------------- /test/smarty/config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/locales/en.yml -------------------------------------------------------------------------------- /test/smarty/config/master.key: -------------------------------------------------------------------------------- 1 | d6f18674c72424f00a78734449493456 -------------------------------------------------------------------------------- /test/smarty/config/puma.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/puma.rb -------------------------------------------------------------------------------- /test/smarty/config/queue.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/queue.yml -------------------------------------------------------------------------------- /test/smarty/config/recurring.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/recurring.yml -------------------------------------------------------------------------------- /test/smarty/config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/routes.rb -------------------------------------------------------------------------------- /test/smarty/config/storage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/config/storage.yml -------------------------------------------------------------------------------- /test/smarty/db/cable_schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/db/cable_schema.rb -------------------------------------------------------------------------------- /test/smarty/db/cache_schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/db/cache_schema.rb -------------------------------------------------------------------------------- /test/smarty/db/migrate/20250220220024_create_notes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/db/migrate/20250220220024_create_notes.rb -------------------------------------------------------------------------------- /test/smarty/db/migrate/20250222215621_create_active_storage_tables.active_storage.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/db/migrate/20250222215621_create_active_storage_tables.active_storage.rb -------------------------------------------------------------------------------- /test/smarty/db/queue_schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/db/queue_schema.rb -------------------------------------------------------------------------------- /test/smarty/db/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/db/seeds.rb -------------------------------------------------------------------------------- /test/smarty/lib/tasks/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/public/400.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/public/400.html -------------------------------------------------------------------------------- /test/smarty/public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/public/404.html -------------------------------------------------------------------------------- /test/smarty/public/406-unsupported-browser.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/public/406-unsupported-browser.html -------------------------------------------------------------------------------- /test/smarty/public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/public/422.html -------------------------------------------------------------------------------- /test/smarty/public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/public/500.html -------------------------------------------------------------------------------- /test/smarty/public/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/public/icon.png -------------------------------------------------------------------------------- /test/smarty/public/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/public/icon.svg -------------------------------------------------------------------------------- /test/smarty/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/public/robots.txt -------------------------------------------------------------------------------- /test/smarty/script/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/test/application_system_test_case.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/application_system_test_case.rb -------------------------------------------------------------------------------- /test/smarty/test/channels/ping_channel_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/channels/ping_channel_test.rb -------------------------------------------------------------------------------- /test/smarty/test/controllers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/test/controllers/notes_controller_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/controllers/notes_controller_test.rb -------------------------------------------------------------------------------- /test/smarty/test/fixtures/files/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/test/fixtures/files/goruco.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/fixtures/files/goruco.jpg -------------------------------------------------------------------------------- /test/smarty/test/fixtures/notes.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/fixtures/notes.yml -------------------------------------------------------------------------------- /test/smarty/test/helpers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/test/integration/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/test/jobs/note_cheerio_job_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/jobs/note_cheerio_job_test.rb -------------------------------------------------------------------------------- /test/smarty/test/mailers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/test/mailers/note_mailer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/mailers/note_mailer_test.rb -------------------------------------------------------------------------------- /test/smarty/test/mailers/previews/note_mailer_preview.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/mailers/previews/note_mailer_preview.rb -------------------------------------------------------------------------------- /test/smarty/test/models/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/test/models/note_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/models/note_test.rb -------------------------------------------------------------------------------- /test/smarty/test/system/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/test/system/notes_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/system/notes_test.rb -------------------------------------------------------------------------------- /test/smarty/test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/smarty/test/test_helper.rb -------------------------------------------------------------------------------- /test/smarty/vendor/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/smarty/vendor/javascript/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/test_helper.rb -------------------------------------------------------------------------------- /test/unit/base_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/base_test.rb -------------------------------------------------------------------------------- /test/unit/basic_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/basic_test.rb -------------------------------------------------------------------------------- /test/unit/connection_adapter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/connection_adapter_test.rb -------------------------------------------------------------------------------- /test/unit/database_adapter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/database_adapter_test.rb -------------------------------------------------------------------------------- /test/unit/database_adapters_sqlite_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/database_adapters_sqlite_test.rb -------------------------------------------------------------------------------- /test/unit/database_configurations_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/database_configurations_test.rb -------------------------------------------------------------------------------- /test/unit/database_tasks_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/database_tasks_test.rb -------------------------------------------------------------------------------- /test/unit/global_id_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/global_id_test.rb -------------------------------------------------------------------------------- /test/unit/job_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/job_test.rb -------------------------------------------------------------------------------- /test/unit/lru_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/lru_test.rb -------------------------------------------------------------------------------- /test/unit/mutex_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/mutex_test.rb -------------------------------------------------------------------------------- /test/unit/storage_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/storage_test.rb -------------------------------------------------------------------------------- /test/unit/subtenant_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/subtenant_test.rb -------------------------------------------------------------------------------- /test/unit/tenant_selector_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/tenant_selector_test.rb -------------------------------------------------------------------------------- /test/unit/tenant_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/tenant_test.rb -------------------------------------------------------------------------------- /test/unit/tenanted_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/tenanted_test.rb -------------------------------------------------------------------------------- /test/unit/untenanted_connection_pool_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basecamp/activerecord-tenanted/HEAD/test/unit/untenanted_connection_pool_test.rb --------------------------------------------------------------------------------