upon further investigation and a lot of googling, i have found that in
order to get environment_id and state_id columns into the engines table, I
have to add
t.belongs_to :environment
t.belongs_to :state
into the migrations files.
Thanks for the assistance Frederic. :)
On Tuesday, December 2
On Dec 26, 6:19 pm, Julien Estebane wrote:
> Hello Frederick,
>
> As you suggested, i attempted to include this in my scaffold, but when I
> rake db:migrate, I get the error:
>
You probably don't want to include the has_many - since that requires
a column on the other table. Other than that, ta
Hello Frederick,
As you suggested, i attempted to include this in my scaffold, but when I
rake db:migrate, I get the error:
user@user-user:~/dev/myapp$ rails generate scaffold engine
belongs_to:environment belongs_to:state
invoke active_record
createdb/migrate/20121226181404_c
On Dec 26, 2:25 am, Julien Estebane wrote:
> Hello,
>
> I am having what I might think is a basic problem...I can't get the
> relationships of has_many and belongs_to mapped out correctly in the
> database. I would expect, according to my MODEL and MIGRATION, that there
> would be a desktop_id i
4 matches
Mail list logo