Skip to content

Commit

Permalink
Merge pull request #2 from bbttxu/demographics
Browse files Browse the repository at this point in the history
Demographics
  • Loading branch information
bbttxu authored Mar 4, 2017
2 parents 3d10f67 + 24e4ae1 commit 50500c4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
2 changes: 0 additions & 2 deletions app/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
VoterDistrict.import
Billboard.import
School.import
DentonDemographic.import
DentonHouse.import
HomelessnessSurvey.import
Demographic.import
Expand All @@ -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
Expand Down
12 changes: 0 additions & 12 deletions app/models/denton_demographic.rb

This file was deleted.

9 changes: 9 additions & 0 deletions db/migrate/20170304190000_delete_denton_demographic.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class DeleteDentonDemographic < ActiveRecord::Migration[5.0]
def up
drop_table :denton_demographics
end

def down
raise ActiveRecord::IrreversibleMigration
end
end
9 changes: 1 addition & 8 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: 20170304180000) do
ActiveRecord::Schema.define(version: 20170304190000) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 50500c4

Please sign in to comment.