Sha256: 881abf3d8b168ed335f9a83b66f1a524ebf9a14cf933af927ff9a23194bb2345

Contents?: true

Size: 487 Bytes

Versions: 10

Compression:

Stored size: 487 Bytes

Contents

# This migration comes from the_comments_engine (originally 20130101010103)
class ChangeCommentable < ActiveRecord::Migration
  def change
    # Uncomment this. Add fields to Commentable Models
    #
    [:users, :posts].each do |table_name|
      change_table table_name do |t|
        t.integer :draft_comments_count,     default: 0
        t.integer :published_comments_count, default: 0
        t.integer :deleted_comments_count,   default: 0
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
fuck_comments-2.3.4 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments_ruby-2.3.4 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments_ruby-2.3.3 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments-2.3.1 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments-2.2.2 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments-2.2.1 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments-2.2.0 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments-2.1.0 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments-2.0.1 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb
the_comments-2.0.0 spec/dummy_app/db/migrate/20131027185334_change_commentable.the_comments_engine.rb