Removed references to the field "migrated".

This commit is contained in:
James Cole 2014-12-09 06:37:36 +01:00
parent cb312ca025
commit 999a7481e4
4 changed files with 3 additions and 12 deletions

View File

@ -10,15 +10,9 @@ class DefaultUserSeeder extends Seeder
DB::table('users')->delete();
if (App::environment() == 'testing') {
User::create(
['email' => 'thegrumpydictator@gmail.com', 'password' => 'james', 'reset' => null, 'remember_token' => null, 'migrated' => 0]
);
User::create(
['email' => 'acceptance@example.com', 'password' => 'acceptance', 'reset' => null, 'remember_token' => null, 'migrated' => 0]
);
User::create(
['email' => 'functional@example.com', 'password' => 'functional', 'reset' => null, 'remember_token' => null, 'migrated' => 0]
);
User::create(['email' => 'thegrumpydictator@gmail.com', 'password' => 'james', 'reset' => null, 'remember_token' => null]);
User::create(['email' => 'acceptance@example.com', 'password' => 'acceptance', 'reset' => null, 'remember_token' => null]);
User::create(['email' => 'functional@example.com', 'password' => 'functional', 'reset' => null, 'remember_token' => null]);
}
}

View File

@ -40,7 +40,6 @@ class User
{
$user = new \User;
$user->email = isset($data['email']) ? $data['email'] : null;
$user->migrated = 0;
$user->reset = \Str::random(32);
$user->password = \Hash::make(\Str::random(12));

View File

@ -15,7 +15,6 @@ class User extends Eloquent implements UserInterface, RemindableInterface
public static $rules
= [
'email' => 'required|email|unique:users,email',
'migrated' => 'required|boolean',
'password' => 'required|between:60,60',
'reset' => 'between:32,32',
];

View File

@ -2,7 +2,6 @@
League\FactoryMuffin\Facade::define(
'User', [
'email' => 'email',
'migrated' => 1,
'password' => 'empty'
]
);