debian-mirror-gitlab/db/migrate/20210701111627_add_upvotes_count_to_issues.rb
2021-09-30 23:02:18 +05:30

15 lines
326 B
Ruby

# frozen_string_literal: true
class AddUpvotesCountToIssues < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers
def up
with_lock_retries do
add_column :issues, :upvotes_count, :integer, default: 0, null: false
end
end
def down
remove_column :issues, :upvotes_count
end
end