Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
[jobeet] fixed missing unique index on the JobeetAffiliate model clas…
Browse files Browse the repository at this point in the history
…s and fixed wrong method call in chapter 15.
  • Loading branch information
Hugo Hamon committed Jun 26, 2012
1 parent d6c32d8 commit 36c88c3
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions jobeet/en/03.markdown
Expand Up @@ -85,7 +85,7 @@ agnostic, let's create the schema file by hand by editing the empty
id: ~
url: { type: varchar(255), required: true }
email: { type: varchar(255), required: true, index: unique }
token: { type: varchar(255), required: true }
token: { type: varchar(255), required: true, index: unique }
is_active: { type: boolean, required: true, default: 0 }
created_at: ~

Expand Down Expand Up @@ -134,7 +134,7 @@ agnostic, let's create the schema file by hand by editing the empty
columns:
url: { type: string(255), notnull: true }
email: { type: string(255), notnull: true, unique: true }
token: { type: string(255), notnull: true }
token: { type: string(255), notnull: true, unique: true }
is_active: { type: boolean, notnull: true, default: 0 }
relations:
JobeetCategories:
Expand Down
4 changes: 2 additions & 2 deletions jobeet/en/15.markdown
Expand Up @@ -302,10 +302,10 @@ method:
'description' => $this->getDescription(),
'how_to_apply' => $this->getHowToApply(),
<propel>
'expires_at' => $this->getCreatedAt('c'),
'expires_at' => $this->getExpiresAt('c'),
</propel>
<doctrine>
'expires_at' => $this->getCreatedAt(),
'expires_at' => $this->getExpiresAt(),
</doctrine>
);
}
Expand Down
4 changes: 2 additions & 2 deletions jobeet/es/03.markdown
Expand Up @@ -66,7 +66,7 @@ Como la base de datos no existe todavía, y como queremos mantener la base de da
id: ~
url: { type: varchar(255), required: true }
email: { type: varchar(255), required: true, index: unique }
token: { type: varchar(255), required: true }
token: { type: varchar(255), required: true, index: unique }
is_active: { type: boolean, required: true, default: 0 }
created_at: ~

Expand Down Expand Up @@ -114,7 +114,7 @@ Como la base de datos no existe todavía, y como queremos mantener la base de da
columns:
url: { type: string(255), notnull: true }
email: { type: string(255), notnull: true, unique: true }
token: { type: string(255), notnull: true }
token: { type: string(255), notnull: true, unique: true }
is_active: { type: boolean, notnull: true, default: 0 }
relations:
JobeetCategories:
Expand Down
4 changes: 2 additions & 2 deletions jobeet/es/15.markdown
Expand Up @@ -282,10 +282,10 @@ En lugar de pasar un array de objetos `JobeetJob` a las plantillas, se pasa un a
'description' => $this->getDescription(),
'how_to_apply' => $this->getHowToApply(),
<propel>
'expires_at' => $this->getCreatedAt('c'),
'expires_at' => $this->getExpiresAt('c'),
</propel>
<doctrine>
'expires_at' => $this->getCreatedAt(),
'expires_at' => $this->getExpiresAt(),
</doctrine>
);
}
Expand Down
4 changes: 2 additions & 2 deletions jobeet/fr/03.markdown
Expand Up @@ -85,7 +85,7 @@ la base de données Jobeet, nous allons créer le fichier du schéma à la main
id: ~
url: { type: varchar(255), required: true }
email: { type: varchar(255), required: true, index: unique }
token: { type: varchar(255), required: true }
token: { type: varchar(255), required: true, index: unique }
is_active: { type: boolean, required: true, default: 0 }
created_at: ~

Expand Down Expand Up @@ -134,7 +134,7 @@ la base de données Jobeet, nous allons créer le fichier du schéma à la main
columns:
url: { type: string(255), notnull: true }
email: { type: string(255), notnull: true, unique: true }
token: { type: string(255), notnull: true }
token: { type: string(255), notnull: true, unique: true }
is_active: { type: boolean, notnull: true, default: 0 }
relations:
JobeetCategories:
Expand Down
4 changes: 2 additions & 2 deletions jobeet/fr/15.markdown
Expand Up @@ -305,10 +305,10 @@ la logique pour traiter les valeurs a été refactorisée dans la méthode
'description' => $this->getDescription(),
'how_to_apply' => $this->getHowToApply(),
<propel>
'expires_at' => $this->getCreatedAt('c'),
'expires_at' => $this->getExpiresAt('c'),
</propel>
<doctrine>
'expires_at' => $this->getCreatedAt(),
'expires_at' => $this->getExpiresAt(),
</doctrine>
);
}
Expand Down
4 changes: 2 additions & 2 deletions jobeet/it/03.markdown
Expand Up @@ -87,7 +87,7 @@ di esso (come realizzarlo), creeremo lo schema a mano modificando un file vuoto
id: ~
url: { type: varchar(255), required: true }
email: { type: varchar(255), required: true, index: unique }
token: { type: varchar(255), required: true }
token: { type: varchar(255), required: true, index: unique }
is_active: { type: boolean, required: true, default: 0 }
created_at: ~

Expand Down Expand Up @@ -136,7 +136,7 @@ di esso (come realizzarlo), creeremo lo schema a mano modificando un file vuoto
columns:
url: { type: string(255), notnull: true }
email: { type: string(255), notnull: true, unique: true }
token: { type: string(255), notnull: true }
token: { type: string(255), notnull: true, unique: true }
is_active: { type: boolean, notnull: true, default: 0 }
relations:
JobeetCategories:
Expand Down
4 changes: 2 additions & 2 deletions jobeet/it/15.markdown
Expand Up @@ -301,10 +301,10 @@ la logica di processare i valori è stata spostata fuori nel metodo `JobeetJob::
'description' => $this->getDescription(),
'how_to_apply' => $this->getHowToApply(),
<propel>
'expires_at' => $this->getCreatedAt('c'),
'expires_at' => $this->getExpiresAt('c'),
</propel>
<doctrine>
'expires_at' => $this->getCreatedAt(),
'expires_at' => $this->getExpiresAt(),
</doctrine>
);
}
Expand Down
4 changes: 2 additions & 2 deletions jobeet/ja/03.markdown
Expand Up @@ -60,7 +60,7 @@ ORM には、関連するクラスを生成するために、テーブルとリ
id: ~
url: { type: varchar(255), required: true }
email: { type: varchar(255), required: true, index: unique }
token: { type: varchar(255), required: true }
token: { type: varchar(255), required: true, index: unique }
is_active: { type: boolean, required: true, default: 0 }
created_at: ~

Expand Down Expand Up @@ -107,7 +107,7 @@ ORM には、関連するクラスを生成するために、テーブルとリ
columns:
url: { type: string(255), notnull: true }
email: { type: string(255), notnull: true, unique: true }
token: { type: string(255), notnull: true }
token: { type: string(255), notnull: true, unique: true }
is_active: { type: boolean, notnull: true, default: 0 }
relations:
JobeetCategories:
Expand Down
4 changes: 2 additions & 2 deletions jobeet/ja/15.markdown
Expand Up @@ -278,10 +278,10 @@ Jobeet のフィード追加に関して、求職者はリアルタイムで新
'description' => $this->getDescription(),
'how_to_apply' => $this->getHowToApply(),
<propel>
'expires_at' => $this->getCreatedAt('c'),
'expires_at' => $this->getExpiresAt('c'),
</propel>
<doctrine>
'expires_at' => $this->getCreatedAt(),
'expires_at' => $this->getExpiresAt(),
</doctrine>
);
}
Expand Down
4 changes: 2 additions & 2 deletions jobeet/pt_BR/03.markdown
Expand Up @@ -63,7 +63,7 @@ Como o banco de dados não existe ainda e queremos manter o banco de dados do Jo
id: ~
url: { type: varchar(255), required: true }
email: { type: varchar(255), required: true, index: unique }
token: { type: varchar(255), required: true }
token: { type: varchar(255), required: true, index: unique }
is_active: { type: boolean, required: true, default: 0 }
created_at: ~

Expand Down Expand Up @@ -110,7 +110,7 @@ Como o banco de dados não existe ainda e queremos manter o banco de dados do Jo
columns:
url: { type: string(255), notnull: true }
email: { type: string(255), notnull: true, unique: true }
token: { type: string(255), notnull: true }
token: { type: string(255), notnull: true, unique: true }
is_active: { type: boolean, notnull: true, default: 0 }
relations:
JobeetCategories:
Expand Down
4 changes: 2 additions & 2 deletions jobeet/ru/03.markdown
Expand Up @@ -88,7 +88,7 @@ ORM потребует от вас описания таблиц и связей
id: ~
url: { type: varchar(255), required: true }
email: { type: varchar(255), required: true, index: unique }
token: { type: varchar(255), required: true }
token: { type: varchar(255), required: true, index: unique }
is_active: { type: boolean, required: true, default: 0 }
created_at: ~

Expand Down Expand Up @@ -136,7 +136,7 @@ ORM потребует от вас описания таблиц и связей
columns:
url: { type: string(255), notnull: true }
email: { type: string(255), notnull: true, unique: true }
token: { type: string(255), notnull: true }
token: { type: string(255), notnull: true, unique: true }
is_active: { type: boolean, notnull: true, default: 0 }
relations:
JobeetCategories:
Expand Down
4 changes: 2 additions & 2 deletions jobeet/ru/15.markdown
Expand Up @@ -325,10 +325,10 @@ URL в начале:
'description' => $this->getDescription(),
'how_to_apply' => $this->getHowToApply(),
<propel>
'expires_at' => $this->getCreatedAt('c'),
'expires_at' => $this->getExpiresAt('c'),
</propel>
<doctrine>
'expires_at' => $this->getCreatedAt(),
'expires_at' => $this->getExpiresAt(),
</doctrine>
);
}
Expand Down

0 comments on commit 36c88c3

Please sign in to comment.