Sha256: b5a9a3afc6450ae6b9f4d076f88692774dc51cc24f84972d6a21af78766a9d80

Contents?: true

Size: 1.28 KB

Versions: 29

Compression:

Stored size: 1.28 KB

Contents

# frozen_string_literal: true

class RemoveTriStateBooleans < ActiveRecord::Migration[6.0]
  def change
    change_column_null :alchemy_elements, :public, false, false
    change_column_default :alchemy_elements, :public, true

    change_column_null :alchemy_elements, :folded, false
    change_column_null :alchemy_elements, :unique, false

    change_column_null :alchemy_essence_richtexts, :public, false, false
    change_column_default :alchemy_essence_richtexts, :public, false

    change_column_null :alchemy_essence_texts, :public, false

    change_column_null :alchemy_folded_pages, :folded, false

    change_column_null :alchemy_languages, :public, false
    change_column_null :alchemy_languages, :default, false

    change_column_null :alchemy_pages, :language_root, false, false
    change_column_default :alchemy_pages, :language_root, false

    change_column_null :alchemy_pages, :restricted, false
    change_column_null :alchemy_pages, :robot_index, false
    change_column_null :alchemy_pages, :robot_follow, false
    change_column_null :alchemy_pages, :sitemap, false

    change_column_null :alchemy_sites, :public, false
    change_column_null :alchemy_sites, :redirect_to_primary_host, false, false
    change_column_default :alchemy_sites, :redirect_to_primary_host, false
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.9 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.8 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.7 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.6 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.5 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.14 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.4 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.13 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.3 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.2 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.1 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.1.0 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.12 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.11 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.10 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.9 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.8 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.7 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.6 db/migrate/20200907111332_remove_tri_state_booleans.rb