gab-social/db/migrate/20190722003541_add_member_count_to_groups.rb
2019-07-22 03:46:00 +03:00

11 lines
238 B
Ruby

class AddMemberCountToGroups < ActiveRecord::Migration[5.2]
def up
add_column :groups, :member_count, :integer
change_column_default :groups, :member_count, 0
end
def down
remove_column :groups, :member_count
end
end