mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Set reserved_domains.password
to NOT NULL
This commit is contained in:
parent
d346d9c87b
commit
2941328652
4 changed files with 22 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
class ChangeReservedDomainsPasswordToNotNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :reserved_domains, :password, false
|
||||
end
|
||||
end
|
|
@ -2241,7 +2241,7 @@ CREATE TABLE public.reserved_domains (
|
|||
updator_str character varying,
|
||||
legacy_id integer,
|
||||
name character varying,
|
||||
password character varying
|
||||
password character varying NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
@ -4864,3 +4864,5 @@ INSERT INTO schema_migrations (version) VALUES ('20181002090319');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20181108154921');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20190102144032');
|
||||
|
||||
|
|
3
test/fixtures/reserved_domains.yml
vendored
Normal file
3
test/fixtures/reserved_domains.yml
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
one:
|
||||
name: reserved.test
|
||||
password: reserved-001
|
11
test/models/reserved_domain_test.rb
Normal file
11
test/models/reserved_domain_test.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ReservedDomainTest < ActiveSupport::TestCase
|
||||
setup do
|
||||
@reserved_domain = reserved_domains(:one)
|
||||
end
|
||||
|
||||
def test_fixture_is_valid
|
||||
assert @reserved_domain.valid?
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue