site-libsoc/Server/db/migrations/5_create_table_permissions_...

22 lines
391 B
Julia
Raw Normal View History

2023-06-15 01:41:54 +07:00
module CreateTablePermissionsRoles
import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table
function up()
create_table(:permissionsroles) do
[
primary_key()
column(:permissions_id, :int)
column(:roles_id, :int)
]
end
add_index(:permissionsroles, :permissions_id)
end
function down()
drop_table(:permissionsroles)
end
end