Sha256: 4091d276523b3eab48678a37968b0ca1a20cdc4053750abb14bc7e5b96b5ea4b

Contents?: true

Size: 1.28 KB

Versions: 43

Compression:

Stored size: 1.28 KB

Contents

# frozen_string_literal: true

class RemoveTriStateBooleans < ActiveRecord::Migration[5.2]
  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

43 entries across 43 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.3.7 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.3.6 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.3.5 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.3.4 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.3.3 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.3.2 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.3.1 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.3.0 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.2.7 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.2.6 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.1.10 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.0.pre.rc4 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-6.0.0.pre.rc3 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.2.5 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.1.9 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.2.4 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.1.8 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.1.7 db/migrate/20200907111332_remove_tri_state_booleans.rb
alchemy_cms-5.2.3 db/migrate/20200907111332_remove_tri_state_booleans.rb