summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-27 12:22:11 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-12-28 14:42:15 +0100
commitfaab452af92dbdbdb45d399fc5bbe85bb345cb9d (patch)
treeda5ab53db1cbb315718d578b62b47824289ff0ca
parentc8bb171664de94778d4e6eba7773596b265f9efb (diff)
downloadgitlab-ce-faab452af92dbdbdb45d399fc5bbe85bb345cb9d.tar.gz
Remove unneeded password_confirmation from seed.
-rw-r--r--db/fixtures/development/01_admin.rb1
-rw-r--r--db/fixtures/production/001_admin.rb1
-rw-r--r--spec/factories.rb1
3 files changed, 0 insertions, 3 deletions
diff --git a/db/fixtures/development/01_admin.rb b/db/fixtures/development/01_admin.rb
index 004d4cd64a1..1b2dec31323 100644
--- a/db/fixtures/development/01_admin.rb
+++ b/db/fixtures/development/01_admin.rb
@@ -5,7 +5,6 @@ Gitlab::Seeder.quiet do
s.email = 'admin@example.com'
s.username = 'root'
s.password = '5iveL!fe'
- s.password_confirmation = '5iveL!fe'
s.admin = true
s.projects_limit = 100
s.confirmed_at = DateTime.now
diff --git a/db/fixtures/production/001_admin.rb b/db/fixtures/production/001_admin.rb
index 0755ac714e1..8b560ee09e0 100644
--- a/db/fixtures/production/001_admin.rb
+++ b/db/fixtures/production/001_admin.rb
@@ -11,7 +11,6 @@ admin = User.create(
name: "Administrator",
username: 'root',
password: password,
- password_confirmation: password,
password_expires_at: expire_time,
theme_id: Gitlab::Theme::MARS
diff --git a/spec/factories.rb b/spec/factories.rb
index 50580cd1334..fc103e5b133 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -20,7 +20,6 @@ FactoryGirl.define do
name
sequence(:username) { |n| "#{Faker::Internet.user_name}#{n}" }
password "12345678"
- password_confirmation { password }
confirmed_at { Time.now }
confirmation_token { nil }