From 8e5a61871cf18af616da4845f34329a44aed3bb0 Mon Sep 17 00:00:00 2001 From: Jaime Iniesta Date: Wed, 18 May 2016 19:12:30 +0200 Subject: [PATCH] Removes AdminUser creation from migration This sneaks into production if you're not aware -- better remove it and have the admin users created via the rails console as stated in the README. --- db/migrate/20130127063936_devise_create_admin_users.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/db/migrate/20130127063936_devise_create_admin_users.rb b/db/migrate/20130127063936_devise_create_admin_users.rb index 91a1ed9d0..91d85fafb 100755 --- a/db/migrate/20130127063936_devise_create_admin_users.rb +++ b/db/migrate/20130127063936_devise_create_admin_users.rb @@ -1,10 +1,4 @@ class DeviseCreateAdminUsers < ActiveRecord::Migration - def migrate(direction) - super - # Create a default user - AdminUser.create!(:email => 'tech@harrys.com', :password => 'h@rry5t3ch', :password_confirmation => 'h@rry5t3ch') if direction == :up - end - def change create_table(:admin_users) do |t| ## Database authenticatable