Sha256: 0c4ba3b79702d461aa7a0653d3b2ebd88f42141360460fd7722f6b60d934f849

Contents?: true

Size: 277 Bytes

Versions: 5

Compression:

Stored size: 277 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
gutentag-0.8.0 db/migrate/3_no_null_counters.rb
gutentag-0.7.0 db/migrate/3_no_null_counters.rb
gutentag-0.6.0 db/migrate/3_no_null_counters.rb
gutentag-0.5.1 db/migrate/3_no_null_counters.rb
gutentag-0.5.0 db/migrate/3_no_null_counters.rb