Fix code style
This commit is contained in:
parent
3da668394d
commit
0019272687
1 changed files with 17 additions and 51 deletions
|
@ -261,15 +261,11 @@ class InitialMigration < ActiveRecord::Migration[6.0]
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :accounts, :public_name, <<~SQL
|
constraint :accounts, :public_name, <<~SQL
|
||||||
public_name IS NULL
|
public_name IS NULL OR is_good_limited_text(public_name, 3, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(public_name, 3, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :accounts, :biography, <<~SQL
|
constraint :accounts, :biography, <<~SQL
|
||||||
biography IS NULL
|
biography IS NULL OR is_good_limited_text(biography, 3, 10000)
|
||||||
OR
|
|
||||||
is_good_limited_text(biography, 3, 10000)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :federal_subjects, :english_name, <<~SQL
|
constraint :federal_subjects, :english_name, <<~SQL
|
||||||
|
@ -289,93 +285,63 @@ class InitialMigration < ActiveRecord::Migration[6.0]
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :zip_code, <<~SQL
|
constraint :passports, :zip_code, <<~SQL
|
||||||
zip_code IS NULL
|
zip_code IS NULL OR is_good_limited_text(zip_code, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(zip_code, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :town_type, <<~SQL
|
constraint :passports, :town_type, <<~SQL
|
||||||
town_type IS NULL
|
town_type IS NULL OR is_good_limited_text(town_type, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(town_type, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :town_name, <<~SQL
|
constraint :passports, :town_name, <<~SQL
|
||||||
town_name IS NULL
|
town_name IS NULL OR is_good_limited_text(town_name, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(town_name, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :settlement_type, <<~SQL
|
constraint :passports, :settlement_type, <<~SQL
|
||||||
settlement_type IS NULL
|
settlement_type IS NULL OR is_good_limited_text(settlement_type, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(settlement_type, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :settlement_name, <<~SQL
|
constraint :passports, :settlement_name, <<~SQL
|
||||||
settlement_name IS NULL
|
settlement_name IS NULL OR is_good_limited_text(settlement_name, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(settlement_name, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :district_type, <<~SQL
|
constraint :passports, :district_type, <<~SQL
|
||||||
district_type IS NULL
|
district_type IS NULL OR is_good_limited_text(district_type, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(district_type, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :district_name, <<~SQL
|
constraint :passports, :district_name, <<~SQL
|
||||||
district_name IS NULL
|
district_name IS NULL OR is_good_limited_text(district_name, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(district_name, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :street_type, <<~SQL
|
constraint :passports, :street_type, <<~SQL
|
||||||
street_type IS NULL
|
street_type IS NULL OR is_good_limited_text(street_type, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(street_type, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :street_name, <<~SQL
|
constraint :passports, :street_name, <<~SQL
|
||||||
street_name IS NULL
|
street_name IS NULL OR is_good_limited_text(street_name, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(street_name, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :residence_type, <<~SQL
|
constraint :passports, :residence_type, <<~SQL
|
||||||
residence_type IS NULL
|
residence_type IS NULL OR is_good_limited_text(residence_type, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(residence_type, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :residence_name, <<~SQL
|
constraint :passports, :residence_name, <<~SQL
|
||||||
residence_name IS NULL
|
residence_name IS NULL OR is_good_limited_text(residence_name, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(residence_name, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :building_type, <<~SQL
|
constraint :passports, :building_type, <<~SQL
|
||||||
building_type IS NULL
|
building_type IS NULL OR is_good_limited_text(building_type, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(building_type, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :building_name, <<~SQL
|
constraint :passports, :building_name, <<~SQL
|
||||||
building_name IS NULL
|
building_name IS NULL OR is_good_limited_text(building_name, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(building_name, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :apartment_type, <<~SQL
|
constraint :passports, :apartment_type, <<~SQL
|
||||||
apartment_type IS NULL
|
apartment_type IS NULL OR is_good_limited_text(apartment_type, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(apartment_type, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
constraint :passports, :apartment_name, <<~SQL
|
constraint :passports, :apartment_name, <<~SQL
|
||||||
apartment_name IS NULL
|
apartment_name IS NULL OR is_good_limited_text(apartment_name, 1, 255)
|
||||||
OR
|
|
||||||
is_good_limited_text(apartment_name, 1, 255)
|
|
||||||
SQL
|
SQL
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Reference in a new issue