scinote-web/db/migrate/20160425133500_add_counter_cache_to_protocols.rb
2025-06-04 13:31:57 +02:00

9 lines
226 B
Ruby

class AddCounterCacheToProtocols < ActiveRecord::Migration[4.2]
def up
add_column :protocols, :nr_of_synced_children, :integer, default: 0
end
def down
remove_column :protocols, :nr_of_synced_children
end
end