Sha256: 5c4b621ad1d16c89eea3a894e44290b3f8dc2f331c41153114effcedc0d58293
Contents?: true
Size: 729 Bytes
Versions: 25
Compression:
Stored size: 729 Bytes
Contents
class SwitchToLocalizedPageFields < ActiveRecord::Migration[6.1] def up remove_columns :maglev_pages, :title, :seo_title, :meta_description add_column :maglev_pages, :title_translations, :jsonb, default: {} add_column :maglev_pages, :seo_title_translations, :jsonb, default: {} add_column :maglev_pages, :meta_description_translations, :jsonb, default: {} end def down add_column :maglev_pages, :title, :string add_column :maglev_pages, :seo_title, :string add_column :maglev_pages, :meta_description, :string remove_column :maglev_pages, :title_translations remove_column :maglev_pages, :seo_title_translations remove_column :maglev_pages, :meta_description_translations end end
Version data entries
25 entries across 25 versions & 1 rubygems