Skip to content

Commit

Permalink
Remove unused whois_records.body DB column
Browse files Browse the repository at this point in the history
Closes #131
  • Loading branch information
Artur Beljajev committed Nov 30, 2018
1 parent 28bd500 commit 9369532
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 106 deletions.
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
5 changes: 2 additions & 3 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,8 +33,7 @@

create_table "whois_records", force: :cascade do |t|
t.string "name"
t.text "body"
t.json "json"
t.json "json"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["name"], name: "index_domains_on_name"
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 @@ -93,54 +47,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 @@ -189,15 +95,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

0 comments on commit 9369532

Please sign in to comment.