1 class AddReportCountToIssues < ActiveRecord::Migration
3 add_column :issues, :report_count, :integer, :default => 0
4 add_foreign_key :issues, :users, :column => :updated_by, :name => "issues_updated_by_fkey", on_delete: :cascade
5 add_index :issues, :updated_by