Hello all. Noticed today that this code: class CreateCache < ActiveRecord::Migration def self.up create_table :cache do |t| t.bigint :name end end end in rails 2.3.x *silently* ignores the bigint setting [!] Might be good to at least warn or raise an exception even better Cheers! -roger- -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Prem Sichanugrist
2011-Jul-12 21:52 UTC
Re: suggestion: raise on method unknown in a migration
Does this problem appears on 3.0.x too? On Tue, Jul 12, 2011 at 5:49 PM, rogerdpack <rogerpack2005@gmail.com> wrote:> Hello all. > Noticed today that this code: > > class CreateCache < ActiveRecord::Migration > def self.up > create_table :cache do |t| > t.bigint :name > end > end > end > > in rails 2.3.x *silently* ignores the bigint setting [!] > > Might be good to at least warn or raise an exception even better > Cheers! > -roger- > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
> Does this problem appears on 3.0.x too?Nope 3.x says undefined method `int'' So that''s better at least... -roger- -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Prem Sichanugrist
2011-Jul-12 22:09 UTC
Re: suggestion: raise on method unknown in a migration
Hmm .. I think we can improve on that. However, I don''t think there will be another release of 2.3.x unless there''s a security hole in it. On Tue, Jul 12, 2011 at 6:00 PM, Roger Pack <rogerpack2005@gmail.com> wrote:> > Does this problem appears on 3.0.x too? > > Nope 3.x says > > undefined method `int'' > > So that''s better at least... > > -roger- > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
> Hmm .. I think we can improve on that. However, I don''t think there will be > another release of 2.3.x unless there''s a security hole in it.Sound reasonable. Thanks for the timely responses :) -roger- -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.