```ruby
# frozen_string_literal: true

class AddVisibilityLevelToGdataDatasets < ActiveRecord::Migration[5.2]
  def change
    add_column :gdata_datasets, :visibility_level, :integer, null: false, default: 0
  end
end
```

Add task to publish datasets on migration to add visibility_level
user
```ruby
# frozen_string_literal: true

class AddVisibilityLevelToGdataDatasets < ActiveRecord::Migration[5.2]
  def change
    add_column :gdata_datasets, :visibility_level, :integer, null: false, default: 0

    GobiertoData::Dataset.update_all(visibility_level: 1)
  end
end
```
assistant