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-3.5.0 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.4.0 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.3.7 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.3.6 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.3.5 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.3.3 db/migrate/20100810151922_add_field_name_index.rb