Refactor and add securities controller
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
defmodule Tradex.Repo.Migrations.AddSecuritiesTable do
|
||||
defmodule Tradex.Repo.Migrations.CreateSecurities do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:securities, primary_key: false) do
|
||||
add :id, :binary_id, primary_key: true
|
||||
add :name, :string, null: false
|
||||
add :name, :string
|
||||
add :ticker, :string
|
||||
add :wkn, :string
|
||||
add :isin, :string
|
||||
@@ -13,7 +13,5 @@ defmodule Tradex.Repo.Migrations.AddSecuritiesTable do
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
end
|
||||
|
||||
create unique_index(:securities, [:name])
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user