* Adds a basic settings model * Added more settings methods; Hooked up initial settings runner to app boot * Update onboarding flow to use settings model instead of session data
15 lines
344 B
Elixir
15 lines
344 B
Elixir
defmodule Pinchflat.Repo.Migrations.CreateSettings do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:settings) do
|
|
add :name, :string, null: false
|
|
add :value, :string, null: false
|
|
add :datatype, :string, null: false
|
|
|
|
timestamps(type: :utc_datetime)
|
|
end
|
|
|
|
create unique_index(:settings, [:name])
|
|
end
|
|
end
|