Update rails-models.md
This commit is contained in:
parent
8c124682c9
commit
2d350582f8
|
@ -98,7 +98,7 @@ Or HABTM:
|
||||||
|
|
||||||
And in migrations:
|
And in migrations:
|
||||||
|
|
||||||
create_table :images do
|
create_table :images do |t|
|
||||||
t.references :post, :polymorphic => true
|
t.references :post, :polymorphic => true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue