We recently upgraded from 2.0.old to 2.3.5. Now when we run migrations schema.rb is not getting automatically updated. (the migrations do work though) db:schema:dump seems correctly dump the schema and update schema.rb Any suggestions on where to start looking around? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Dec 17, 2:55 pm, Josh <josh.m.sha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> We recently upgraded from 2.0.old to 2.3.5. > > Now when we run migrations schema.rb is not getting automatically > updated. (the migrations do work though) > > db:schema:dump seems correctly dump the schema and update schema.rb > > Any suggestions on where to start looking around?Identical thing happened to me. I tried creating a new database and loading all my old data into it. Schema.rb worked once and then stopped working. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mickael Gerard
2009-Dec-22 14:26 UTC
Re: Re: schema dump to schema.rb not happening after migration
Hello, Is the ActiveRecord#schema_format still set to :ruby? This can be set in the environment.rb file : config.active_record.schema_format = :ruby The default value is :ruby. Mickael 2009/12/19 Todd <toddqmiller-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > > On Dec 17, 2:55 pm, Josh <josh.m.sha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> We recently upgraded from 2.0.old to 2.3.5. >> >> Now when we run migrations schema.rb is not getting automatically >> updated. (the migrations do work though) >> >> db:schema:dump seems correctly dump the schema and update schema.rb >> >> Any suggestions on where to start looking around? > > Identical thing happened to me. I tried creating a new database and > loading all my old data into it. Schema.rb worked once and then > stopped working. > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.