mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
automatic group infrustructure
This commit is contained in:
14
db/migrate/20130506020935_add_automatic_to_groups.rb
Normal file
14
db/migrate/20130506020935_add_automatic_to_groups.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user