This commit is contained in:
a-ill
2023-06-14 21:41:54 +03:00
parent 4d034eba7d
commit 9e8ee05bb6
128 changed files with 12242 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
module CreateTableRoles
import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table
function up()
create_table(:roles) do
[
primary_key()
column(:name, :string, limit = 100)
]
end
add_index(:roles, :name)
end
function down()
drop_table(:roles)
end
end