Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule Q.Repo.Migrations.CreateTable.Service.Companies do
- def change do
- create table(:comapnies) do
- add(:status_id, references(:statuses, type: :varchar))
- add(:admin_id, references(:admins), null: false)
- end
- end
- end
- action: action(),
- changes: %{optional(atom()) => term()},
- constraints: [constraint()],
- data: Ecto.Schema.t() | map() | nil,
- empty_values: term(),
- errors: [{atom(), error()}],
- filters: %{optional(atom()) => term()},
- params: %{optional(String.t()) => term()} | nil,
- prepare: [(t() -> t())],
- repo: atom() | nil,
- repo_opts: Keyword.t(),
- required: [atom()],
- types: nil | %{optional(atom()) => Ecto.Type.t()},
- valid?: boolean(),
- validations: [{atom(), term()}]
Add Comment
Please, Sign In to add comment