0c8d2f7e00
Got caught with https://github.com/absinthe-graphql/absinthe/issues/601 at some point, that's why fields are renamed Fix tests Signed-off-by: Thomas Citharel <tcit@tcit.fr>
12 lines
410 B
Elixir
12 lines
410 B
Elixir
defmodule Mobilizon.Repo.Migrations.RenameAddressFields do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
rename(table(:addresses), :addressCountry, to: :country)
|
|
rename(table(:addresses), :addressLocality, to: :locality)
|
|
rename(table(:addresses), :addressRegion, to: :region)
|
|
rename(table(:addresses), :postalCode, to: :postal_code)
|
|
rename(table(:addresses), :streetAddress, to: :street)
|
|
end
|
|
end
|