Skip to content

Drop max_workspaces and max_workspaces_per_user fields

What does this MR do and why?

Drop max_workspaces and max_workspaces_per_user fields

Migration output

$ bin/rails db:migrate:up:main VERSION=20231218062442  RAILS_ENV=development
main: == [advisory_lock_connection] object_id: 223060, pg_backend_pid: 282721
main: == 20231218062442 RemoveMaxWorkspacesFromRemoteDevelopmentAgentConfigs: migrating 
main: -- remove_column(:remote_development_agent_configs, :max_workspaces, :bigint, {:default=>-1, :null=>false})
main:    -> 0.0012s
main: == 20231218062442 RemoveMaxWorkspacesFromRemoteDevelopmentAgentConfigs: migrated (0.0041s) 
main: == [advisory_lock_connection] object_id: 223060, pg_backend_pid: 282721

$ bin/rails db:migrate:up:main VERSION=20231218062505  RAILS_ENV=development
main: == [advisory_lock_connection] object_id: 182500, pg_backend_pid: 283051
main: == 20231218062505 RemoveMaxWorkspacesPerUserFromRemoteDevelopmentAgentConfigs: migrating 
main: -- remove_column(:remote_development_agent_configs, :max_workspaces_per_user, :bigint, {:default=>-1, :null=>false})
main:    -> 0.0012s
main: == 20231218062505 RemoveMaxWorkspacesPerUserFromRemoteDevelopmentAgentConfigs: migrated (0.0041s) 
main: == [advisory_lock_connection] object_id: 182500, pg_backend_pid: 283051
$ bin/rails db:migrate:down:main VERSION=20231218062442  RAILS_ENV=development
main: == [advisory_lock_connection] object_id: 182520, pg_backend_pid: 286820
main: == 20231218062442 RemoveMaxWorkspacesFromRemoteDevelopmentAgentConfigs: reverting 
main: -- add_column(:remote_development_agent_configs, :max_workspaces, :bigint, {:default=>-1, :null=>false})
main:    -> 0.0015s
main: == 20231218062442 RemoveMaxWorkspacesFromRemoteDevelopmentAgentConfigs: reverted (0.0049s) 
main: == [advisory_lock_connection] object_id: 182520, pg_backend_pid: 286820

aakgun@sayglubu:~/aakgun/1/gdk/gitlab$ bin/rails db:migrate:down:main VERSION=20231218062505  RAILS_ENV=development
main: == [advisory_lock_connection] object_id: 182460, pg_backend_pid: 287256
main: == 20231218062505 RemoveMaxWorkspacesPerUserFromRemoteDevelopmentAgentConfigs: reverting 
main: -- add_column(:remote_development_agent_configs, :max_workspaces_per_user, :bigint, {:default=>-1, :null=>false})
main:    -> 0.0016s
main: == 20231218062505 RemoveMaxWorkspacesPerUserFromRemoteDevelopmentAgentConfigs: reverted (0.0053s) 
main: == [advisory_lock_connection] object_id: 182460, pg_backend_pid: 287256

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alper Akgun

Merge request reports

Loading