Fix mix format and format migrations too
Signed-off-by: Thomas Citharel <tcit@tcit.fr> Fix credo warnings Signed-off-by: Thomas Citharel <tcit@tcit.fr> Show elixir version Signed-off-by: Thomas Citharel <tcit@tcit.fr> Also lint migrations Signed-off-by: Thomas Citharel <tcit@tcit.fr> Reset allow failure to false Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -3,13 +3,13 @@ defmodule Mobilizon.Repo.Migrations.CreateComments do
|
||||
|
||||
def change do
|
||||
create table(:comments) do
|
||||
add :url, :string
|
||||
add :text, :text
|
||||
add(:url, :string)
|
||||
add(:text, :text)
|
||||
|
||||
add :account_id, references(:accounts, on_delete: :nothing), null: false
|
||||
add :event_id, references(:events, on_delete: :nothing)
|
||||
add :in_reply_to_comment_id, references(:categories, on_delete: :nothing)
|
||||
add :origin_comment_id, references(:addresses, on_delete: :delete_all)
|
||||
add(:account_id, references(:accounts, on_delete: :nothing), null: false)
|
||||
add(:event_id, references(:events, on_delete: :nothing))
|
||||
add(:in_reply_to_comment_id, references(:categories, on_delete: :nothing))
|
||||
add(:origin_comment_id, references(:addresses, on_delete: :delete_all))
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user