Guest User

Untitled

a guest
Feb 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. defmodule Q.Repo.Migrations.CreateTable.Service.Companies do
  2.  
  3. def change do
  4. create table(:comapnies) do
  5. add(:status_id, references(:statuses, type: :varchar))
  6. add(:admin_id, references(:admins), null: false)
  7. end
  8. end
  9. end
  10.  
  11. action: action(),
  12. changes: %{optional(atom()) => term()},
  13. constraints: [constraint()],
  14. data: Ecto.Schema.t() | map() | nil,
  15. empty_values: term(),
  16. errors: [{atom(), error()}],
  17. filters: %{optional(atom()) => term()},
  18. params: %{optional(String.t()) => term()} | nil,
  19. prepare: [(t() -> t())],
  20. repo: atom() | nil,
  21. repo_opts: Keyword.t(),
  22. required: [atom()],
  23. types: nil | %{optional(atom()) => Ecto.Type.t()},
  24. valid?: boolean(),
  25. validations: [{atom(), term()}]
Add Comment
Please, Sign In to add comment