add steps
This commit is contained in:
		
							
								
								
									
										17
									
								
								priv/repo/migrations/20220726001809_create_steps.exs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								priv/repo/migrations/20220726001809_create_steps.exs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| defmodule Memex.Repo.Migrations.CreateSteps do | ||||
|   use Ecto.Migration | ||||
|  | ||||
|   def change do | ||||
|     create table(:steps, primary_key: false) do | ||||
|       add :id, :binary_id, primary_key: true | ||||
|       add :title, :string | ||||
|       add :description, :text | ||||
|       add :position, :integer | ||||
|       add :pipeline_id, references(:pipelines, on_delete: :nothing, type: :binary_id) | ||||
|  | ||||
|       timestamps() | ||||
|     end | ||||
|  | ||||
|     create index(:steps, [:pipeline_id]) | ||||
|   end | ||||
| end | ||||
		Reference in New Issue
	
	Block a user