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 <neod...@gmail.com> 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 <neo...@gmail.com> 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.

Reply via email to