update travis pg
This commit is contained in:
parent
d356375af5
commit
599104f353
2 changed files with 5 additions and 3 deletions
|
@ -4,4 +4,6 @@ before_script:
|
|||
- psql -c 'create database angel_orm_test;' -U postgres
|
||||
- psql -c "CREATE USER angel_orm WITH PASSWORD 'angel_orm';" -U postgres
|
||||
services:
|
||||
- postgresql
|
||||
- postgresql
|
||||
addons:
|
||||
postgresql: "9.4"
|
|
@ -62,7 +62,7 @@ abstract class _Car extends Model {
|
|||
abstract class _NoMigrations extends Model {}
|
||||
```
|
||||
|
||||
Models can use the `@Alias()` annotation; `package:angel_orm` obeys it.
|
||||
Models can use the `@SerializableField()` annotation; `package:angel_orm` obeys it.
|
||||
|
||||
After building, you'll have access to a `Query` class with strongly-typed methods that
|
||||
allow to run asynchronous queries without a headache.
|
||||
|
@ -159,7 +159,7 @@ abstract class _Author extends Model {
|
|||
@HasMany(localKey: 'id', foreignKey: 'author_id', cascadeOnDelete: true)
|
||||
List<Book> books;
|
||||
|
||||
@Alias('writing_utensil')
|
||||
@SerializableField(alias: 'writing_utensil')
|
||||
@hasOne
|
||||
Pen pen;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue