gab-social/db/migrate/20190722003541_add_member_count_to_groups.rb

11 lines
238 B
Ruby
Raw Normal View History

2019-07-22 01:46:00 +01:00
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