database updated to create domain crendtial references
This commit is contained in:
8
db/migrate/20260427123300_create_domains_admins.rb
Normal file
8
db/migrate/20260427123300_create_domains_admins.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class CreateDomainsAdmins < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :domains_admins, id: false do |t|
|
||||
t.belongs_to :users
|
||||
t.belongs_to :domains
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddDomainRedToCredentials < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
add_reference :credentials, :domain, null: false, foreign_key: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user