summaryrefslogtreecommitdiff
path: root/lib/matrix_app_service/migrations.ex
diff options
context:
space:
mode:
authorPierre de Lacroix <pierre@pdelacroix.com>2020-12-09 11:18:25 +0100
committerPierre de Lacroix <pierre@pdelacroix.com>2020-12-09 11:22:20 +0100
commit63842148713c5e5cb3fed07692556d326c210352 (patch)
tree6aa95d3c30e3aae8649cbb2561c9a6c292b733ef /lib/matrix_app_service/migrations.ex
parentdont' 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.ex21
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