Re: [Rails-core] Timestamps in migration
I think this is already the default in Rails 5. Isn't? On Tue, Jul 5, 2016 at 3:52 PM Andrey Molchanov wrote: > Hi there! > If we create migrate with > > t.timestamps > > it will add lines > > t.datetime "created_at" > > t.datetime "updated_at" > > In schema.rb file. > What are you think about if *by default* in this case null option will be > false without explicitly specifying? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-core+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-core@googlegroups.com. > Visit this group at https://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
Re: [Rails-core] Timestamps in migration
My bad. Yes, it is. But in 4.2.7 it is`n. You specify not add it in 4s versions? вторник, 5 июля 2016 г., 22:00:37 UTC+3 пользователь Rafael Mendonça França написал: > > I think this is already the default in Rails 5. Isn't? > > On Tue, Jul 5, 2016 at 3:52 PM Andrey Molchanov > wrote: > >> Hi there! >> If we create migrate with >> >> t.timestamps >> >> it will add lines >> >> t.datetime "created_at" >> >> t.datetime "updated_at" >> >> In schema.rb file. >> What are you think about if *by default* in this case null option will >> be false without explicitly specifying? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-co...@googlegroups.com . >> To post to this group, send email to rubyonra...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/rubyonrails-core. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
Re: [Rails-core] Timestamps in migration
Yes. And I think in Rails 4.2 it show a deprecation warning to tell people that it is going to default to null: false in Rails 5 On Tue, Jul 5, 2016 at 4:07 PM Andrey Molchanov wrote: > My bad. Yes, it is. But in 4.2.7 it is`n. You specify not add it in 4s > versions? > > вторник, 5 июля 2016 г., 22:00:37 UTC+3 пользователь Rafael Mendonça > França написал: >> >> I think this is already the default in Rails 5. Isn't? >> >> On Tue, Jul 5, 2016 at 3:52 PM Andrey Molchanov wrote: >> > Hi there! >>> If we create migrate with >>> >>> t.timestamps >>> >>> it will add lines >>> >>> t.datetime "created_at" >>> >>> t.datetime "updated_at" >>> >>> In schema.rb file. >>> What are you think about if *by default* in this case null option will >>> be false without explicitly specifying? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Ruby on Rails: Core" group. >>> >> To unsubscribe from this group and stop receiving emails from it, send an >>> email to rubyonrails-co...@googlegroups.com. >>> To post to this group, send email to rubyonra...@googlegroups.com. >> >> >>> Visit this group at https://groups.google.com/group/rubyonrails-core. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-core+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-core@googlegroups.com. > Visit this group at https://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
Re: [Rails-core] Timestamps in migration
Thank you, I will be more attentive вторник, 5 июля 2016 г., 22:08:31 UTC+3 пользователь Rafael Mendonça França написал: > > Yes. And I think in Rails 4.2 it show a deprecation warning to tell people > that it is going to default to null: false in Rails 5 > > > On Tue, Jul 5, 2016 at 4:07 PM Andrey Molchanov > wrote: > >> My bad. Yes, it is. But in 4.2.7 it is`n. You specify not add it in 4s >> versions? >> >> вторник, 5 июля 2016 г., 22:00:37 UTC+3 пользователь Rafael Mendonça >> França написал: >>> >>> I think this is already the default in Rails 5. Isn't? >>> >>> On Tue, Jul 5, 2016 at 3:52 PM Andrey Molchanov >>> wrote: >>> >> Hi there! If we create migrate with t.timestamps it will add lines t.datetime "created_at" t.datetime "updated_at" In schema.rb file. What are you think about if *by default* in this case null option will be false without explicitly specifying? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. >>> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com. To post to this group, send email to rubyonra...@googlegroups.com. >>> >>> Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout. >>> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-co...@googlegroups.com . >> To post to this group, send email to rubyonra...@googlegroups.com >> . >> Visit this group at https://groups.google.com/group/rubyonrails-core. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
Re: [Rails-core] Timestamps in migration
No problem at all. I'm really not sure if the deprecation is there so if it is not please let us know so we can fix this. On Tue, Jul 5, 2016 at 4:11 PM Andrey Molchanov wrote: > Thank you, I will be more attentive > > вторник, 5 июля 2016 г., 22:08:31 UTC+3 пользователь Rafael Mendonça > França написал: >> >> Yes. And I think in Rails 4.2 it show a deprecation warning to tell >> people that it is going to default to null: false in Rails 5 >> >> >> On Tue, Jul 5, 2016 at 4:07 PM Andrey Molchanov wrote: >> >>> My bad. Yes, it is. But in 4.2.7 it is`n. You specify not add it in 4s >>> versions? >>> >>> вторник, 5 июля 2016 г., 22:00:37 UTC+3 пользователь Rafael Mendonça >>> França написал: I think this is already the default in Rails 5. Isn't? On Tue, Jul 5, 2016 at 3:52 PM Andrey Molchanov wrote: >>> Hi there! > If we create migrate with > > t.timestamps > > it will add lines > > t.datetime "created_at" > > t.datetime "updated_at" > > In schema.rb file. > What are you think about if *by default* in this case null option > will be false without explicitly specifying? > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to rubyonrails-co...@googlegroups.com. > To post to this group, send email to rubyonra...@googlegroups.com. > Visit this group at https://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > -- >>> You received this message because you are subscribed to the Google >>> Groups "Ruby on Rails: Core" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to rubyonrails-co...@googlegroups.com. >>> To post to this group, send email to rubyonra...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/rubyonrails-core. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-core+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-core@googlegroups.com. > Visit this group at https://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
Re: [Rails-core] Timestamps in migration
Yes, in 4.2.5 it is. But after rake db:migrate I not seen it. This behavior is strangely. This confused me, and so I created this topic. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.