Migration to set state column in users table to not null (#13084)
parent
23c2cb4ead
commit
89a40de1a0
@ -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…
Reference in new issue