mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 16:03:25 +00:00
99ac6ef100
Closes #88 Automatically create tokens for new users and actors Closes #89 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
13 lines
411 B
Elixir
13 lines
411 B
Elixir
defmodule Mobilizon.Repo.Migrations.FeedTokenTable do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:feed_tokens, primary_key: false) do
|
|
add(:token, Ecto.UUID.type(), primary_key: true)
|
|
add(:actor_id, references(:actors, on_delete: :delete_all), null: true)
|
|
add(:user_id, references(:users, on_delete: :delete_all), null: false)
|
|
|
|
timestamps(updated_at: false)
|
|
end
|
|
end
|
|
end
|