refactor user table and setup timestamp auto setting

This commit is contained in:
Tom Bloor 2017-04-21 20:52:14 +01:00
parent 6bfd516d76
commit d0cbb215d8
15 changed files with 74 additions and 380 deletions

View file

@ -27,15 +27,13 @@ $schema->deploy;
$schema->resultset('User')->create({
email => 'admin@example.com',
hashedpassword => 'abc123',
password => 'abc123',
administrator => {},
joindate => DateTime->now,
});
$schema->resultset('User')->create({
email => 'user@example.com',
hashedpassword => 'abc123',
joindate => DateTime->now,
password => 'abc123',
});
is $schema->resultset('User')->count, 2, 'Users Created';