Open ramandika opened 5 years ago
Let's say you have N number of migration, and you want to rollback some of the migrations with this method rake db:rollback STEP=X
rake db:rollback STEP=X
It should rollback X latest schema
It actually rollback 2X latest schema (doubled)
There are two number of tenants, (public and tenant1)
Database: postgresql 9.6.8
Apartment version: 2.2.0
Apartment config (in config/initializers/apartment.rb):
config/initializers/apartment.rb
config.tenant_names = %w(tenant1 public)
Rails.application.config.middleware.use EnvVarsElevator
Rails (or ActiveRecord) version: 5.2.1
Ruby version: 2.3.4p301
Steps to reproduce
Let's say you have N number of migration, and you want to rollback some of the migrations with this method
rake db:rollback STEP=X
Expected behavior
It should rollback X latest schema
Actual behavior
It actually rollback 2X latest schema (doubled)
System configuration
There are two number of tenants, (public and tenant1)
Database: postgresql 9.6.8
Apartment version: 2.2.0
Apartment config (in
config/initializers/apartment.rb
):config.tenant_names = %w(tenant1 public)
Rails.application.config.middleware.use EnvVarsElevator
Rails (or ActiveRecord) version: 5.2.1
Ruby version: 2.3.4p301