Migration to set state column in users table to not null (#13084)

pull/13077/head^2
Mario de Frutos 7 years ago committed by GitHub
parent 23c2cb4ead
commit 89a40de1a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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