mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Remove domains.reserved
database column as unused
This commit is contained in:
parent
c85ebf542d
commit
1ad62bf4bd
9 changed files with 8 additions and 11 deletions
|
@ -79,7 +79,6 @@ class Domain < ActiveRecord::Base
|
|||
self.status_notes = {} if status_notes.nil?
|
||||
end
|
||||
|
||||
before_create -> { self.reserved = in_reserved_list?; nil }
|
||||
before_save :manage_automatic_statuses
|
||||
before_save :touch_always_version
|
||||
def touch_always_version
|
||||
|
|
|
@ -72,7 +72,6 @@ class DomainStatus < ActiveRecord::Base
|
|||
FORCE_DELETE = 'serverForceDelete'
|
||||
DELETE_CANDIDATE = 'deleteCandidate'
|
||||
EXPIRED = 'expired'
|
||||
RESERVED = 'reserved'
|
||||
|
||||
STATUSES = [
|
||||
CLIENT_DELETE_PROHIBITED, SERVER_DELETE_PROHIBITED, CLIENT_HOLD, SERVER_HOLD,
|
||||
|
|
5
db/migrate/20190319133036_remove_domains_reserved.rb
Normal file
5
db/migrate/20190319133036_remove_domains_reserved.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class RemoveDomainsReserved < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :domains, :reserved
|
||||
end
|
||||
end
|
|
@ -938,7 +938,6 @@ CREATE TABLE public.domains (
|
|||
pending_json jsonb,
|
||||
force_delete_date date,
|
||||
statuses character varying[],
|
||||
reserved boolean DEFAULT false,
|
||||
status_notes public.hstore,
|
||||
statuses_before_force_delete character varying[] DEFAULT '{}'::character varying[],
|
||||
upid integer,
|
||||
|
@ -4935,6 +4934,8 @@ INSERT INTO schema_migrations (version) VALUES ('20190311111718');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20190312211614');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20190319133036');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20190322152123');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20190322152529');
|
||||
|
|
|
@ -96,7 +96,6 @@ Content-Type: application/json
|
|||
},
|
||||
|
||||
],
|
||||
"reserved":false,
|
||||
"status_notes":{
|
||||
|
||||
},
|
||||
|
@ -212,7 +211,6 @@ Content-Type: application/json
|
|||
},
|
||||
|
||||
],
|
||||
"reserved":false,
|
||||
"status_notes":{
|
||||
|
||||
},
|
||||
|
@ -319,7 +317,6 @@ Content-Type: application/json
|
|||
]
|
||||
}
|
||||
],
|
||||
"reserved":false,
|
||||
"status_notes":{
|
||||
|
||||
},
|
||||
|
|
|
@ -97,7 +97,6 @@ Content-Type: application/json
|
|||
]
|
||||
}
|
||||
],
|
||||
"reserved":false,
|
||||
"status_notes":{
|
||||
|
||||
},
|
||||
|
@ -240,7 +239,6 @@ Content-Type: application/json
|
|||
]
|
||||
}
|
||||
],
|
||||
"reserved":false,
|
||||
"status_notes":{
|
||||
|
||||
},
|
||||
|
|
|
@ -61,7 +61,6 @@ Content-Type: application/json
|
|||
"statuses": [
|
||||
"ok"
|
||||
],
|
||||
"reserved": false,
|
||||
"status_notes": {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,6 @@ module Serializers
|
|||
force_delete_date: domain.force_delete_date,
|
||||
statuses: domain.statuses,
|
||||
locked_by_registrant_at: domain.locked_by_registrant_at,
|
||||
reserved: domain.reserved,
|
||||
status_notes: domain.status_notes,
|
||||
nameservers: nameservers,
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ class SerializersRegistrantApiDomainTest < ActiveSupport::TestCase
|
|||
period_unit creator_str updator_str legacy_id legacy_registrar_id legacy_registrant_id
|
||||
outzone_at delete_at registrant_verification_asked_at
|
||||
registrant_verification_token pending_json force_delete_date statuses
|
||||
locked_by_registrant_at reserved status_notes nameservers]
|
||||
locked_by_registrant_at status_notes nameservers]
|
||||
|
||||
assert_equal(keys, @json.keys & keys)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue