First crack
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
Dan Milne
2025-10-23 16:45:00 +11:00
parent 1ff0a95392
commit 56f7dd7b3c
54 changed files with 1249 additions and 30 deletions

View File

@@ -0,0 +1,19 @@
class CreateApplications < ActiveRecord::Migration[8.1]
def change
create_table :applications do |t|
t.string :name, null: false
t.string :slug, null: false
t.string :app_type, null: false
t.string :client_id
t.string :client_secret
t.text :redirect_uris
t.text :metadata
t.boolean :active, default: true, null: false
t.timestamps
end
add_index :applications, :slug, unique: true
add_index :applications, :client_id, unique: true
add_index :applications, :active
end
end