gab-social/db/migrate/20190722003541_add_member_c...

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