remove step contexts and context notes
This commit is contained in:
		| @@ -1,16 +0,0 @@ | ||||
| defmodule Memex.Repo.Migrations.CreateStepContexts do | ||||
|   use Ecto.Migration | ||||
|  | ||||
|   def change do | ||||
|     create table(:step_contexts, primary_key: false) do | ||||
|       add :id, :binary_id, primary_key: true | ||||
|       add :step_id, references(:steps, on_delete: :nothing, type: :binary_id) | ||||
|       add :context_id, references(:contexts, on_delete: :nothing, type: :binary_id) | ||||
|  | ||||
|       timestamps() | ||||
|     end | ||||
|  | ||||
|     create index(:step_contexts, [:step_id]) | ||||
|     create index(:step_contexts, [:context_id]) | ||||
|   end | ||||
| end | ||||
| @@ -1,16 +0,0 @@ | ||||
| defmodule Memex.Repo.Migrations.CreateContextNotes do | ||||
|   use Ecto.Migration | ||||
|  | ||||
|   def change do | ||||
|     create table(:context_notes, primary_key: false) do | ||||
|       add :id, :binary_id, primary_key: true | ||||
|       add :context_id, references(:contexts, on_delete: :nothing, type: :binary_id) | ||||
|       add :note_id, references(:notes, on_delete: :nothing, type: :binary_id) | ||||
|  | ||||
|       timestamps() | ||||
|     end | ||||
|  | ||||
|     create index(:context_notes, [:context_id]) | ||||
|     create index(:context_notes, [:note_id]) | ||||
|   end | ||||
| end | ||||
		Reference in New Issue
	
	Block a user