Tidy up homepage and navigation

This commit is contained in:
Dan Milne
2025-11-09 20:58:13 +11:00
parent c9e2992fe0
commit 1f4428348d
56 changed files with 2822 additions and 955 deletions

View File

@@ -0,0 +1,20 @@
class CreateDefaultDsn < ActiveRecord::Migration[8.1]
def change
reversible do |dir|
dir.up do
# Only create if no DSNs exist
if Dsn.count == 0
Dsn.create!(
name: 'Development DSN',
key: 'dev-test-key-1234567890abcdef',
enabled: true
)
end
end
dir.down do
# Remove the default DSN if it exists
Dsn.where(key: 'dev-test-key-1234567890abcdef').delete_all
end
end
end
end