diff --git a/db/migrate/20170304225055_add_id_to_schools.rb b/db/migrate/20170304225055_add_id_to_schools.rb new file mode 100644 index 0000000..457db33 --- /dev/null +++ b/db/migrate/20170304225055_add_id_to_schools.rb @@ -0,0 +1,5 @@ +class AddIdToSchools < ActiveRecord::Migration[5.0] + def change + add_column :schools, :_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 45f49e0..b646e82 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: 20170304200019) do +ActiveRecord::Schema.define(version: 20170304225055) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -41,6 +41,16 @@ t.integer "longitude" end + create_table "crimes", force: :cascade do |t| + t.integer "_id" + t.string "crime" + t.string "locname" + t.datetime "incidentdatetime" + t.string "publicadress" + t.string "agency" + t.string "accuracy" + end + create_table "demographics", force: :cascade do |t| t.integer "_id" t.integer "year" @@ -111,6 +121,7 @@ end create_table "schools", force: :cascade do |t| + t.integer "_id" t.integer "objectid" t.float "gis_nr_sde_schools_area" t.float "perimeter"