add migration nullable oauth_app in users table

pull/14535/head
Alberto Romeu 6 years ago
parent 2092efae3a
commit 60aa23f30c

@ -0,0 +1,16 @@
require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
alter_table :oauth_apps do
set_column_allow_null :user_id
end
end,
Proc.new do
alter_table :oauth_apps do
set_column_not_null :user_id
end
end
)
Loading…
Cancel
Save