diff --git a/.travis.yml b/.travis.yml index cf34b7d5..a1619f90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file + - postgresql +addons: + postgresql: "9.4" \ No newline at end of file diff --git a/README.md b/README.md index 16d2527a..e23e70b3 100644 --- a/README.md +++ b/README.md @@ -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 books; - @Alias('writing_utensil') + @SerializableField(alias: 'writing_utensil') @hasOne Pen pen; }