-class AddCounterCaches < ActiveRecord::Migration
+class AddCounterCaches < ActiveRecord::Migration[4.2]
+ class Changeset < ApplicationRecord
+ end
+
+ class Trace < ApplicationRecord
+ self.table_name = "gpx_files"
+ end
+
def self.up
add_column :users, :changesets_count, :integer, :null => false, :default => 0
add_column :users, :traces_count, :integer, :null => false, :default => 0