influitive / apartment

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

Migration not running through tenants. #570

Closed GabrielLidenor closed 5 years ago

GabrielLidenor commented 5 years ago

Steps to reproduce

Create a migration to call a Task.

The Task should create a SQL function called exc

Create another migration to call a Task

The Task should use the function to loop in all tables and change the owner to postgres.

OBS: I'm not using the REASSIGN command ( it does not work either)

Expected behavior

To Change all the owners of all tables in all tenants

Actual behavior

It only changes the main database tables (first tenant)

System configuration