Sha256: 75cdf91ef1b1ff680c92bda4f6368faae45e74069b63e5e83a943cbc9e1e5df8
Contents?: true
Size: 309 Bytes
Versions: 1
Compression:
Stored size: 309 Bytes
Contents
# encoding: utf-8 class AddTaggingcounter < ActiveRecord::Migration def up unless column_exists? :tags, :taggings_count add_column :tags, :taggings_count, :integer end end def down if column_exists? :tags, :taggings_count remove_column :tags, :taggings_count end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
goldencobra-1.4.27 | db/migrate/20140505144517_add_taggingcounter.rb |