mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: disposable invite tokens
This commit is contained in:
9
db/migrate/20140711143146_remove_not_null_from_email.rb
Normal file
9
db/migrate/20140711143146_remove_not_null_from_email.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class RemoveNotNullFromEmail < ActiveRecord::Migration
|
||||
def up
|
||||
execute "ALTER TABLE invites ALTER COLUMN email DROP NOT NULL"
|
||||
end
|
||||
|
||||
def down
|
||||
execute "ALTER TABLE invites ALTER COLUMN email SET NOT NULL"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user