Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused whois_records.body DB column #161

Merged
merged 1 commit into from
Dec 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions db/migrate/20181102124618_remove_whois_records_body.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class RemoveWhoisRecordsBody < ActiveRecord::Migration[5.2]
def up
remove_column :whois_records, :body
end

def down
add_column :whois_records, :body, :text
end
end
3 changes: 1 addition & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2018_06_27_115124) do
ActiveRecord::Schema.define(version: 2018_11_02_124618) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand All @@ -33,7 +33,6 @@

create_table "whois_records", force: :cascade do |t|
t.string "name"
t.text "body"
t.json "json"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
Expand Down
103 changes: 0 additions & 103 deletions test/fixtures/whois_records.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,5 @@
---
privately_owned:
body: |
The information obtained through .ee WHOIS is subject to database
protection according to the Estonian Copyright Act and international
conventions. All rights are reserved to Estonian Internet Foundation.
Search results may not be used for commercial, advertising, recompilation,
repackaging, redistribution, reuse, obscuring or other similar activities.
Downloading of information about domain names for the creation of your own
database is not permitted. If any of the information from .ee WHOIS is
transferred to a third party, it must be done in its entirety. This server
must not be used as a backend for a search engine.

Estonia .ee Top Level Domain WHOIS server

Domain:
name: privatedomain.test
status: inactive
registered: 2018-04-25 14:10:41 +03:00
changed: 2018-04-25 14:10:41 +03:00
expire: 2018-07-25
outzone:
delete:

Registrant:
name: Private Person
email: Not Disclosed
changed: Not Disclosed

Administrative contact:
name: Not Disclosed
email: Not Disclosed
changed: Not Disclosed


Technical contact:
name: Not Disclosed
email: Not Disclosed
changed: Not Disclosed

Registrar:
name: test
url:
phone:
changed: 2018-04-25 14:10:39 +03:00

Estonia .ee Top Level Domain WHOIS server
More information at http://internet.ee
json:
admin_contacts:
-
Expand Down Expand Up @@ -83,54 +37,6 @@ privately_owned:


legally_owned:
body: |
The information obtained through .ee WHOIS is subject to database
protection according to the Estonian Copyright Act and international
conventions. All rights are reserved to Estonian Internet Foundation.
Search results may not be used for commercial, advertising, recompilation,
repackaging, redistribution, reuse, obscuring or other similar activities.
Downloading of information about domain names for the creation of your own
database is not permitted. If any of the information from .ee WHOIS is
transferred to a third party, it must be done in its entirety. This server
must not be used as a backend for a search engine.

Estonia .ee Top Level Domain WHOIS server

Domain:
name: company-domain.test
status: inactive
registered: 2018-04-25 14:10:41 +03:00
changed: 2018-04-25 14:10:41 +03:00
expire: 2018-07-25
outzone:
delete:

Registrant:
name: Private Person
email: Not Disclosed
org id: 123
country: EE
changed: Not Disclosed

Administrative contact:
name: Not Disclosed
email: Not Disclosed
changed: Not Disclosed


Technical contact:
name: Not Disclosed
email: Not Disclosed
changed: Not Disclosed

Registrar:
name: test
url:
phone:
changed: 2018-04-25 14:10:39 +03:00

Estonia .ee Top Level Domain WHOIS server
More information at http://internet.ee
json:
admin_contacts:
-
Expand Down Expand Up @@ -169,15 +75,6 @@ legally_owned:
name: company-domain.test

discarded:
body: |
Estonia .ee Top Level Domain WHOIS server

Domain:
name: discarded-domain.test
status: deleteCandidate

Estonia .ee Top Level Domain WHOIS server
More information at http://internet.ee
json:
name: discarded-domain.test
status:
Expand Down