Commit c2bb99a0 authored by Etienne Baqué's avatar Etienne Baqué

No-oped migration to add state to members

parent a6bfebb3
......@@ -4,14 +4,10 @@ class AddStateToMembers < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers
def up
with_lock_retries do
add_column :members, :state, :integer, limit: 2, default: 0
end
# no-op
end
def down
with_lock_retries do
remove_column :members, :state
end
# no-op
end
end
......@@ -14708,8 +14708,7 @@ CREATE TABLE members (
expires_at date,
ldap boolean DEFAULT false NOT NULL,
override boolean DEFAULT false NOT NULL,
invite_email_success boolean DEFAULT true NOT NULL,
state smallint DEFAULT 0
invite_email_success boolean DEFAULT true NOT NULL
);
CREATE SEQUENCE members_id_seq
......@@ -328,9 +328,6 @@ excluded_attributes:
- :release_id
project_members:
- :source_id
- :state
group_members:
- :state
metrics:
- :merge_request_id
- :pipeline_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment