add notes
This commit is contained in:
		
							
								
								
									
										15
									
								
								priv/repo/migrations/20220726000552_create_notes.exs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								priv/repo/migrations/20220726000552_create_notes.exs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| defmodule Memex.Repo.Migrations.CreateNotes do | ||||
|   use Ecto.Migration | ||||
|  | ||||
|   def change do | ||||
|     create table(:notes, primary_key: false) do | ||||
|       add :id, :binary_id, primary_key: true | ||||
|       add :title, :string | ||||
|       add :content, :text | ||||
|       add :tag, {:array, :string} | ||||
|       add :visibility, :string | ||||
|  | ||||
|       timestamps() | ||||
|     end | ||||
|   end | ||||
| end | ||||
		Reference in New Issue
	
	Block a user