An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
1class CreateFolders < ActiveRecord::Migration[5.1]
2 def change
3 create_table :folders, id: :string, primary_key: :uuid do |t|
4 t.string :user_uuid
5 t.binary :name
6 t.timestamps
7 end
8 add_foreign_key :folders, :users, { column: :user_uuid, primary_key: :uuid }
9 add_index(:folders, :user_uuid)
10
11 end
12end