automatic group infrustructure

This commit is contained in:
Sam
2013-05-06 14:49:56 +10:00
parent 93e9bcc7eb
commit be1ab8b275
6 changed files with 183 additions and 11 deletions

View 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