Skip to content
Celso Dantas edited this page Feb 7, 2015 · 3 revisions

Migrating from version 0.x to 1.0

With Rails 4.2, we had to change the name of the column we use to reference the counter from model_name to counter_model_name. If you are using version 0.x and is trying to update to version 1.0, you'll need to run a migration to change the table column name. See https://github.com/celsodantas/protokoll/pull/17

here is a migration example:

class RenameCustomAutoIncrementsModelName < ActiveRecord::Migration
  def self.change
    rename_column :custom_auto_increments, :model_name, :counter_model_name
  end
end
Clone this wiki locally