influitive / apartment

Database multi-tenancy for Rack (and Rails) applications
2.66k stars 464 forks source link

Find with Parameter 1 but SQL query taking it as NULL #675

Open metripurari opened 1 year ago

metripurari commented 1 year ago

Can Some one please Help me ASAP.

Loading development environment (Rails 6.0.6.1) [1] pry(main)> User.where(id: 1) User Load (43.8ms) SELECT db.users.* FROM db.users WHERE db.users.deleted_at IS NULL AND db.users.id = NULL => []

Expected behavior

It Should return a row