Sha256: 1556c7bb60e424541dc97ace3293b80da5a4624082ab022f94c6210f73ddc034

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

class NoNullCounters < ActiveRecord::Migration
  def up
    change_column :gutentag_tags, :taggings_count, :integer,
      :default => 0,
      :null    => false
  end

  def down
    change_column :gutentag_tags, :taggings_count, :integer,
      :default => 0,
      :null    => true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gutentag-2.6.0 db/migrate/3_no_null_counters.rb