Change user_id column non-nullable (#6435)
This commit is contained in:
parent
95c8232109
commit
67f7ffa792
4 changed files with 11 additions and 5 deletions
6
db/migrate/20180206000000_change_user_id_nonnullable.rb
Normal file
6
db/migrate/20180206000000_change_user_id_nonnullable.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class ChangeUserIdNonnullable < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
change_column_null :invites, :user_id, false
|
||||
change_column_null :web_settings, :user_id, false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue