回答編集履歴
2
fix
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
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
|
+
でしょうか?
|