Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Allow for more precision and scale
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Feb 29, 2016
1 parent bba3198 commit ec1a248
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions db/migrate/20160229023500_change_lat_lon_precision.rb
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down

0 comments on commit ec1a248

Please sign in to comment.