1
1
mirror of https://github.com/plausible/analytics.git synced 2024-12-23 09:33:19 +03:00
analytics/priv/repo/migrations/20190718160353_create_google_search_console_integration.exs

18 lines
468 B
Elixir
Raw Normal View History

2019-09-02 14:29:19 +03:00
defmodule Plausible.Repo.Migrations.CreateGoogleSearchConsoleIntegration do
use Ecto.Migration
def change do
create table(:google_auth) do
add :user_id, references(:users), null: false
add :email, :string, null: false
add :refresh_token, :string, null: false
add :access_token, :string, null: false
add :expires, :naive_datetime, null: false
timestamps()
end
create unique_index(:google_auth, :user_id)
end
end