Sha256: 68c322426cd6922e3c9c3de374829c88d27164019059202e1f788c557938d0b4

Contents?: true

Size: 175 Bytes

Versions: 9

Compression:

Stored size: 175 Bytes

Contents

class AddIndexToTemplates < ActiveRecord::Migration
  def self.up
    add_index :templates, :position
  end
  
  def self.down
    remove_index :templates, :position
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
radiant-templates-extension-1.0.8 db/migrate/008_add_index_to_templates.rb
radiant-templates-extension-1.0.7 db/migrate/008_add_index_to_templates.rb
radiant-templates-extension-1.0.6 db/migrate/008_add_index_to_templates.rb
radiant-templates-extension-1.0.5 db/migrate/008_add_index_to_templates.rb
radiant-templates-extension-1.0.4 db/migrate/008_add_index_to_templates.rb
radiant-templates-extension-1.0.3 db/migrate/008_add_index_to_templates.rb
radiant-templates-extension-1.0.2 db/migrate/008_add_index_to_templates.rb
radiant-templates-extension-1.0.1 db/migrate/008_add_index_to_templates.rb
radiant-templates-extension-1.0.0 db/migrate/008_add_index_to_templates.rb