mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Add database constraints
This commit is contained in:
parent
840f1db5c9
commit
ba33f5740e
10 changed files with 345 additions and 225 deletions
6
db/migrate/20191005162437_add_constraints_part_ii.rb
Normal file
6
db/migrate/20191005162437_add_constraints_part_ii.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddConstraintsPartIi < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :white_ips, :registrar_id, false
|
||||
add_foreign_key :white_ips, :registrars
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue