mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-24 06:22:31 -05:00
14 lines
328 B
Ruby
14 lines
328 B
Ruby
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
|