Files
baffle-hub/db/migrate/20251108041801_create_dsns.rb
2025-11-09 20:58:13 +11:00

13 lines
263 B
Ruby

class CreateDsns < ActiveRecord::Migration[8.1]
def change
create_table :dsns do |t|
t.string :key
t.string :name
t.boolean :enabled, default: true, null: false
t.timestamps
end
add_index :dsns, :key, unique: true
end
end