Sequel.migration do
  up do
    alter_table :layers do
      set_column_not_null(:kind)
    end
  end

  down do
    alter_table :layers do
      set_column_allow_null(:kind)
    end
  end
end

Add migration to add not null to layers.kind
Add migration to add not null to layers.kind
