Just checking in
This commit is contained in:
5
db/migrate/20260430152237_add_domain_red_to_virtuals.rb
Normal file
5
db/migrate/20260430152237_add_domain_red_to_virtuals.rb
Normal 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
5
db/schema.rb
generated
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user