about summary refs log tree commit diff
path: root/db/migrate/20200215021731_set_statuses_hidden_not_null.rb
blob: d16dc9f38223e1919f87a2fba465e6da0588402b (plain) (blame)
1
2
3
4
5
6
7
class SetStatusesHiddenNotNull < ActiveRecord::Migration[5.2]
  def change
    safety_assured do
      execute 'ALTER TABLE "statuses" ADD CONSTRAINT "statuses_hidden_null" CHECK ("hidden" IS NOT NULL) NOT VALID'
    end
  end
end