This commit is contained in:
Rico Sta. Cruz 2017-02-27 06:25:14 +08:00
parent 99f4eeef63
commit ef7bc4fe05
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ category: Rails
change_column :users, :first_name, :text
change_column_default :users, :admin, nil
change_column_null :users, :email, true # adds NOT NULL constraint
change_column_null :users, :email, false # adds NOT NULL constraint
create_table
change_table