summaryrefslogtreecommitdiff
path: root/lib/matrix_app_service/migrations.ex
diff options
context:
space:
mode:
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