X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/29a780eb1af9ca5f8b55e53cf89701b297707607..4d88d1677a2f5657c065544cb42cff2ffe7b2ef6:/db/migrate/20120808231205_add_counter_caches.rb diff --git a/db/migrate/20120808231205_add_counter_caches.rb b/db/migrate/20120808231205_add_counter_caches.rb index 1dffb8ffd..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[5.0] +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