X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/221ca3c1fa985c02243a3c650c828023c1011484..0b97b6bc343d8428367e5fa91ef41e95386880f7:/db/migrate/20120808231205_add_counter_caches.rb?ds=inline diff --git a/db/migrate/20120808231205_add_counter_caches.rb b/db/migrate/20120808231205_add_counter_caches.rb index a26f204da..f29bfbb0e 100644 --- a/db/migrate/20120808231205_add_counter_caches.rb +++ b/db/migrate/20120808231205_add_counter_caches.rb @@ -1,4 +1,11 @@ -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