Sha256: 6dfcb9fbade114646038201b86e2b7adf3f6d592a0ba956ae441fddb07d6dfaf
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
superclass = ActiveRecord::VERSION::MAJOR < 5 ? ActiveRecord::Migration : ActiveRecord::Migration[4.2] class NoNullCounters < superclass 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-0.9.0 | db/migrate/3_no_null_counters.rb |