refactor user table and setup timestamp auto setting
This commit is contained in:
parent
6bfd516d76
commit
d0cbb215d8
15 changed files with 74 additions and 380 deletions
|
@ -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';
|
||||
|
|
Reference in a new issue