Change contacts.name database column to NOT NULL

This commit is contained in:
Artur Beljajev 2018-08-01 16:04:32 +03:00
parent b4be9e7f00
commit 22c6fd61e3
5 changed files with 14 additions and 8 deletions

View file

@ -0,0 +1,5 @@
class ChangeContactsNameToNotNull < ActiveRecord::Migration
def change
change_column_null :contacts, :name, false
end
end