improve invites, record usage
This commit is contained in:
		
							
								
								
									
										11
									
								
								priv/repo/migrations/20230204191547_record_invites.exs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								priv/repo/migrations/20230204191547_record_invites.exs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| defmodule Memex.Repo.Migrations.RecordInvites do | ||||
|   use Ecto.Migration | ||||
|  | ||||
|   def change do | ||||
|     alter table(:users) do | ||||
|       add :invite_id, references(:invites, type: :binary_id) | ||||
|     end | ||||
|  | ||||
|     rename table(:invites), :user_id, to: :created_by_id | ||||
|   end | ||||
| end | ||||
		Reference in New Issue
	
	Block a user