Sha256: 1e6fe5ba848d72dc8e06744a5c7426c3eb7b9b235462e70863b6ff2bc7b61211

Contents?: true

Size: 567 Bytes

Versions: 6

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

class RenameFeaturesToComponentsAtParagraphs < ActiveRecord::Migration[5.1]
  def change
    rename_column :decidim_enhanced_textwork_paragraphs, :decidim_feature_id, :decidim_component_id

    if index_name_exists?(:decidim_enhanced_textwork_paragraphs, "index_decidim_enhanced_textwork_paragraphs_on_decidim_feature_id")
      rename_index :decidim_enhanced_textwork_paragraphs, "index_decidim_enhanced_textwork_paragraphs_on_decidim_feature_id", "index_decidim_enhanced_textwork_paragraphs_on_decidim_component_id"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-enhanced_textwork-1.0.5 db/migrate/20180305133811_rename_features_to_components_at_paragraphs.rb
decidim-enhanced_textwork-1.0.4 db/migrate/20180305133811_rename_features_to_components_at_paragraphs.rb
decidim-enhanced_textwork-1.0.3 db/migrate/20180305133811_rename_features_to_components_at_paragraphs.rb
decidim-enhanced_textwork-1.0.2 db/migrate/20180305133811_rename_features_to_components_at_paragraphs.rb
decidim-enhanced_textwork-1.0.1 db/migrate/20180305133811_rename_features_to_components_at_paragraphs.rb
decidim-enhanced_textwork-1.0.0 db/migrate/20180305133811_rename_features_to_components_at_paragraphs.rb