analytics/priv/repo/migrations/20190718160353_create_google_search_console_integration.exs
2019-09-02 12:29:19 +01:00

18 lines
468 B
Elixir

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