diff options
author | 0oneo <neoman.v@gmail.com> | 2017-03-03 22:22:27 +0800 |
---|---|---|
committer | 0oneo <neoman.v@gmail.com> | 2017-03-03 22:40:27 +0800 |
commit | 8b4e39b13d9f48abf5add5d1013030f933a549ca (patch) | |
tree | 44532636152c5e1ecf190dfab7ab516a9808aeb3 /guides/source | |
parent | fd8da7111835f5c2c136216504330ff01b9eafae (diff) | |
download | rails-8b4e39b13d9f48abf5add5d1013030f933a549ca.tar.gz rails-8b4e39b13d9f48abf5add5d1013030f933a549ca.tar.bz2 rails-8b4e39b13d9f48abf5add5d1013030f933a549ca.zip |
passing unique parameter to belongs_to wrongly
passing `unique` parameter to belongs_to not right,
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/association_basics.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index 6e68935f9b..73c9c10c1f 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -154,7 +154,7 @@ case, the column definition might look like this: ```ruby create_table :accounts do |t| - t.belongs_to :supplier, index: true, unique: true, foreign_key: true + t.belongs_to :supplier, index: { unique: true }, foreign_key: true # ... end ``` |