Added trade unions

This commit is contained in:
a-ill
2023-08-17 12:01:26 +03:00
parent 8e88a5a895
commit 73ece83c60
63 changed files with 1402 additions and 55 deletions

View File

@@ -0,0 +1,26 @@
module CreateTableParties
import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table
function up()
create_table(:parties) do
[
primary_key()
column(:country, :string)
column(:latitude, :float)
column(:longitude, :float)
column(:logo, :string)
column(:name, :string)
column(:website, :string)
column(:contact, :string)
column(:description, :string)
column(:members, :string)
]
end
end
function down()
drop_table(:parties)
end
end