teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

fix

2015/08/25 13:52

投稿

hello-world
hello-world

スコア1342

answer CHANGED
@@ -12,6 +12,6 @@
12
12
  PHPで言うと
13
13
 
14
14
  ```php
15
- t->references("project", array("index" => true, "foreign_key" => true));
15
+ $t->references("project", array("index" => true, "foreign_key" => true));
16
16
  ```
17
17
  でしょうか?

1

php

2015/08/25 13:52

投稿

hello-world
hello-world

スコア1342

answer CHANGED
@@ -7,4 +7,11 @@
7
7
  ```ruby
8
8
  t.references :project, index: true, foreign_key: true
9
9
  ```
10
- と書けます。
10
+ と書けます。
11
+
12
+ PHPで言うと
13
+
14
+ ```php
15
+ t->references("project", array("index" => true, "foreign_key" => true));
16
+ ```
17
+ でしょうか?