diff options
author | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-12-09 11:18:25 +0100 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-12-09 11:22:20 +0100 |
commit | 63842148713c5e5cb3fed07692556d326c210352 (patch) | |
tree | 6aa95d3c30e3aae8649cbb2561c9a6c292b733ef /lib/matrix_app_service/migrations.ex | |
parent | dont' start the repo unless necessary (diff) |
run formatter
Diffstat (limited to 'lib/matrix_app_service/migrations.ex')
-rw-r--r-- | lib/matrix_app_service/migrations.ex | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/matrix_app_service/migrations.ex b/lib/matrix_app_service/migrations.ex index e6ce469..6ae5344 100644 --- a/lib/matrix_app_service/migrations.ex +++ b/lib/matrix_app_service/migrations.ex @@ -3,24 +3,25 @@ defmodule MatrixAppService.Migrations do def change do create table(:users) do - add :local_id, :string - add :remote_id, :string - add :data, :map + add(:local_id, :string) + add(:remote_id, :string) + add(:data, :map) timestamps() end - create unique_index(:users, [:local_id]) - create unique_index(:users, [:remote_id]) + create(unique_index(:users, [:local_id])) + create(unique_index(:users, [:remote_id])) create table(:rooms) do - add :local_id, :string - add :remote_id, :string - add :data, :map + add(:local_id, :string) + add(:remote_id, :string) + add(:data, :map) timestamps() end - create unique_index(:rooms, [:local_id]) - create unique_index(:rooms, [:remote_id]) + + create(unique_index(:rooms, [:local_id])) + create(unique_index(:rooms, [:remote_id])) end end |