diff --git a/app/app.rb b/app/app.rb index 13109a8..7aacf14 100644 --- a/app/app.rb +++ b/app/app.rb @@ -25,7 +25,6 @@ VoterDistrict.import Billboard.import School.import - DentonDemographic.import DentonHouse.import HomelessnessSurvey.import Demographic.import @@ -42,7 +41,6 @@ VoterDistrict.delete_all Billboard.delete_all School.delete_all - DentonDemographic.delete_all DentonHouse.delete_all HomelessnessSurvey.destroy_all Demographic.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 a2d8e72..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: 20170304180000) 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"