X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..f86bb781c9e2f93f7f3a5b638bfc9c3d32160129:/db/migrate/004_user_enhancements.rb diff --git a/db/migrate/004_user_enhancements.rb b/db/migrate/004_user_enhancements.rb index 4d53d0382..68c6cd1de 100644 --- a/db/migrate/004_user_enhancements.rb +++ b/db/migrate/004_user_enhancements.rb @@ -1,6 +1,6 @@ require "migrate" -class UserEnhancements < ActiveRecord::Migration +class UserEnhancements < ActiveRecord::Migration[5.0] def self.up add_column "diary_entries", "latitude", :float, :limit => 53 add_column "diary_entries", "longitude", :float, :limit => 53 @@ -12,7 +12,7 @@ class UserEnhancements < ActiveRecord::Migration t.column "v", :string, :null => false end - add_primary_key "user_preferences", %w(user_id k) + add_primary_key "user_preferences", %w[user_id k] create_table "user_tokens", :id => false do |t| t.column "id", :bigserial, :primary_key => true, :null => false