defmodule CartosnapApp.Repo.Migrations.AddAreasToTrips do
use Ecto.Migration
def change do
alter table(:photo_trips) do
# Split the album into areas by where the photos were taken.
add :areas, :boolean, null: false, default: true
end
# Names looked up for places (reverse geocoding), so each area is asked
# about once rather than on every page view.
create table(:place_names, primary_key: false) do
add :key, :string, primary_key: true
add :name, :string
timestamps(updated_at: false)
end
end
end
neiam
/cartosnap_ex
public · Issues · Pulls · Labels · Forks · Compare · Actions running · Badges · Packages
⭐
Log in to mark this repository.
562 B · text
History
e569b6d