discourse/db/migrate/20130506020935_add_automatic_to_groups.rb

15 lines
328 B
Ruby
Raw Normal View History

2013-05-05 23:49:56 -05:00
class AddAutomaticToGroups < ActiveRecord::Migration
def up
add_column :groups, :automatic, :boolean, default: false, null: false
# all numbers below 100 are reserved for automatic
execute <<SQL
ALTER SEQUENCE groups_id_seq START WITH 100
SQL
end
def down
remove_column :groups, :automatic
end
end