Sha256: 617f40fb00e63463d91cd73c871da1986604d3422e85d5197e03b3513e88efd1

Contents?: true

Size: 294 Bytes

Versions: 16

Compression:

Stored size: 294 Bytes

Contents

class AddFieldNameIndex < ActiveRecord::Migration[5.1]
  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

16 entries across 16 versions & 1 rubygems

Version Path
trusty-cms-3.3.2 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.3.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.2.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.3.0 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.2.0 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.11 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.10 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.9 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.8 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.7 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.6 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.5 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.3 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.2 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.1 db/migrate/20100810151922_add_field_name_index.rb
trusty-cms-3.1.0 db/migrate/20100810151922_add_field_name_index.rb