Interim update

This commit is contained in:
a-ill
2023-07-30 13:04:15 +03:00
parent e22b0a5fd1
commit 3bc8dd4239
111 changed files with 25589 additions and 170 deletions

View File

@@ -0,0 +1,25 @@
module CreateTableCommunes
import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table
function up()
create_table(:communes) do
[
primary_key()
column(:country, :string)
column(:state, :string)
column(:town, :string)
column(:contact, :string)
column(:latitude, :float)
column(:longitude, :float)
column(:members, :int)
column(:status, :string)
]
end
end
function down()
drop_table(:communes)
end
end