-require 'migrate'
+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
t.column "v", :string, :null => false
end
- add_primary_key "user_preferences", ["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
add_column "users", "nearby", :integer, :default => 50
add_column "users", "pass_salt", :string
- User.update_all("nearby = 50");
+ User.update_all("nearby = 50")
end
def self.down