Just checking in

This commit is contained in:
2026-05-02 10:46:08 +00:00
parent 92ceddc32e
commit 6ebb7390d5
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddDomainRedToVirtuals < ActiveRecord::Migration[8.1]
def change
add_reference :virtuals, :domain, null: false, foreign_key: true
end
end

5
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2026_04_30_151640) do
ActiveRecord::Schema[8.1].define(version: 2026_04_30_152237) do
create_table "credentials", charset: "latin1", collation: "latin1_swedish_ci", force: :cascade do |t|
t.datetime "created_at", null: false
t.bigint "domain_id", null: false
@@ -61,9 +61,12 @@ ActiveRecord::Schema[8.1].define(version: 2026_04_30_151640) do
create_table "virtuals", charset: "latin1", collation: "latin1_swedish_ci", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "destination"
t.bigint "domain_id", null: false
t.string "email"
t.datetime "updated_at", null: false
t.index ["domain_id"], name: "index_virtuals_on_domain_id"
end
add_foreign_key "credentials", "domains"
add_foreign_key "virtuals", "domains"
end