From caa62f786f9dca40d4c26aabd6dc313c1cf10d19 Mon Sep 17 00:00:00 2001 From: Adam Krawiec Date: Sat, 4 Mar 2017 12:50:59 -0600 Subject: [PATCH] Remove Denton Demographic (duplicate) --- app/app.rb | 2 - app/models/denton_demographic.rb | 12 ----- ...0170304190000_delete_denton_demographic.rb | 9 ++++ db/schema.rb | 45 +------------------ 4 files changed, 10 insertions(+), 58 deletions(-) delete mode 100644 app/models/denton_demographic.rb create mode 100644 db/migrate/20170304190000_delete_denton_demographic.rb diff --git a/app/app.rb b/app/app.rb index 32590bb..359518c 100644 --- a/app/app.rb +++ b/app/app.rb @@ -25,7 +25,6 @@ VoterDistrict.import Billboard.import School.import - DentonDemographic.import WellInspection.import DentonHouse.import HomelessnessSurvey.import @@ -43,7 +42,6 @@ VoterDistrict.delete_all Billboard.delete_all School.delete_all - DentonDemographic.delete_all WellInspection.delete_all DentonHouse.delete_all HomelessnessSurvey.destroy_all diff --git a/app/models/denton_demographic.rb b/app/models/denton_demographic.rb deleted file mode 100644 index 38f7e22..0000000 --- a/app/models/denton_demographic.rb +++ /dev/null @@ -1,12 +0,0 @@ -class DentonDemographic < ActiveRecord::Base - - RESOURCE_ID = "dbbec00e-87cc-4f9e-b029-97c161b08f60" - def self.import - DataSaver.save_resources(RESOURCE_ID, "denton_demographics") - end - - def self.clean_data(data) - data - end - -end diff --git a/db/migrate/20170304190000_delete_denton_demographic.rb b/db/migrate/20170304190000_delete_denton_demographic.rb new file mode 100644 index 0000000..3a5a10c --- /dev/null +++ b/db/migrate/20170304190000_delete_denton_demographic.rb @@ -0,0 +1,9 @@ +class DeleteDentonDemographic < ActiveRecord::Migration[5.0] + def up + drop_table :denton_demographics + end + + def down + raise ActiveRecord::IrreversibleMigration + end + end \ No newline at end of file diff --git a/db/schema.rb b/db/schema.rb index 5702293..22ee7b8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170304175623) do +ActiveRecord::Schema.define(version: 20170304190000) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -48,13 +48,6 @@ t.integer "value" end - create_table "denton_demographics", force: :cascade do |t| - t.integer "_id" - t.integer "year" - t.string "title_field" - t.integer "value" - end - create_table "denton_houses", force: :cascade do |t| t.integer "year" t.integer "total_housing_units" @@ -180,40 +173,4 @@ t.integer "shape__length" end - create_table "well_inspections", force: :cascade do |t| - t.integer "x" - t.integer "y" - t.integer "objectid" - t.string "sitetype" - t.integer "featureid" - t.string "trakitid" - t.string "propertyid" - t.string "siteaddres" - t.string "operator" - t.string "descriptio" - t.string "wellid" - t.string "status" - t.string "site" - t.string "rrcid" - t.string "platid" - t.datetime "platdate" - t.string "amendedpla" - t.datetime "amendedp_1" - t.string "roaddmgfee" - t.datetime "feepaiddat" - t.string "invoicesta" - t.datetime "invoices_1" - t.string "rrcpermit" - t.datetime "rrcpermitd" - t.datetime "casingdate" - t.datetime "spudcompda" - t.datetime "plugdate" - t.string "gaswelllocation" - t.string "zoningdistrict" - t.string "zoningcase" - t.datetime "lastinspectiondate" - t.string "fullname" - t.integer "_id" - end - end