docbrown/db/migrate/20200226210111_validate_create_email_authorization_table.rb
Andy Zhao a3728cfa4c
[deploy] Add EmailAuthorization model (#6335)
* Add EmailAuthorization model

* Add model file oops

* Add comment for uuid type

Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2020-03-02 12:14:24 -05:00

5 lines
153 B
Ruby

class ValidateCreateEmailAuthorizationTable < ActiveRecord::Migration[5.2]
def change
validate_foreign_key :email_authorizations, :users
end
end