Sha256: 724c64cd21bb8dd508cf300d7c43699351086b647980687245e32c177b06b18e

Contents?: true

Size: 294 Bytes

Versions: 106

Compression:

Stored size: 294 Bytes

Contents

class AddFieldNameIndex < ActiveRecord::Migration[5.2]
  def self.up
    remove_index :page_fields, :page_id
    add_index :page_fields, [:page_id, :name, :content]
  end

  def self.down
    remove_index :page_fields, [:page_id, :name, :content]
    add_index :page_fields, :page_id
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-7.0.2 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-7.0.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-7.0.0 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.3 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.2.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.2.2.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.2.0 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.1.2 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.1.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.0.5 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.0.4 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.0.3 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.0.2 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.0.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-5.6.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-6.0.0 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-5.6.0 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-5.5.9 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-5.5.8 db/migrate/20100810151922_add_field_name_index.rb