diff --git a/db/migrate/20160229023500_change_lat_lon_precision.rb b/db/migrate/20160229023500_change_lat_lon_precision.rb new file mode 100644 index 0000000..d479a17 --- /dev/null +++ b/db/migrate/20160229023500_change_lat_lon_precision.rb @@ -0,0 +1,6 @@ +class ChangeLatLonPrecision < ActiveRecord::Migration + def change + change_column :infractions, :lat, :decimal, precision: 12, scale: 10, null: false + change_column :infractions, :lon, :decimal, precision: 12, scale: 10, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 2221e01..2eedd84 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20151117194703) do +ActiveRecord::Schema.define(version: 20160229023500) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -25,11 +25,11 @@ t.string "tweet_id" t.text "description" t.integer "location_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.boolean "legitimate", default: true - t.decimal "lat", precision: 10, scale: 6, null: false - t.decimal "lon", precision: 10, scale: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.boolean "legitimate", default: true + t.decimal "lat", precision: 12, scale: 10, null: false + t.decimal "lon", precision: 12, scale: 10, null: false t.datetime "reported_at" end