diff --git a/app/controllers/concerns/authorization.rb b/app/controllers/concerns/authorization.rb index aca10b5b2..df48f62f5 100644 --- a/app/controllers/concerns/authorization.rb +++ b/app/controllers/concerns/authorization.rb @@ -2,7 +2,7 @@ module Authorization extend ActiveSupport::Concern included do - before_action :ensure_can_access_account, if: -> { ApplicationRecord.current_tenant && Current.session} + before_action :ensure_can_access_account, if: -> { ApplicationRecord.current_tenant && Current.session } end class_methods do diff --git a/db/migrate/20251024081656_drop_sessions.rb b/db/migrate/20251024081656_drop_sessions.rb index 08eb7c4d1..0c2f31601 100644 --- a/db/migrate/20251024081656_drop_sessions.rb +++ b/db/migrate/20251024081656_drop_sessions.rb @@ -10,7 +10,7 @@ class DropSessions < ActiveRecord::Migration[8.2] t.datetime "updated_at", null: false t.string "user_agent" t.integer "user_id", null: false - t.index ["user_id"], name: "index_sessions_on_user_id" + t.index [ "user_id" ], name: "index_sessions_on_user_id" end add_foreign_key "sessions", "users" diff --git a/db/untenanted_migrate/20251024081104_create_sessions.rb b/db/untenanted_migrate/20251024081104_create_sessions.rb index 6d827416c..6c8b11ed9 100644 --- a/db/untenanted_migrate/20251024081104_create_sessions.rb +++ b/db/untenanted_migrate/20251024081104_create_sessions.rb @@ -6,7 +6,7 @@ class CreateSessions < ActiveRecord::Migration[8.2] t.datetime "updated_at", null: false t.string "user_agent" t.integer "identity_id", null: false - t.index ["identity_id"], name: "index_sessions_on_identity_id" + t.index [ "identity_id" ], name: "index_sessions_on_identity_id" end add_foreign_key "sessions", "identities"