Sha256: b23cd422a4251890e525be35b8ed0e101e5da50b670e60dce303276bd44af030

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

class AddIndexesOnCostumes < ActiveRecord::Migration
  def up
    add_index :costumes, :name
    add_index :costumes, :position
    add_index :costumes, :user_id
  end

  def down
    remove_index :costumes, :name
    remove_index :costumes, :position
    remove_index :costumes, :user_id
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 db/migrate/20150607012707_add_indexes_on_costumes.rb
smalruby-editor-0.4.2-x86-mingw32 db/migrate/20150607012707_add_indexes_on_costumes.rb
smalruby-editor-0.4.2 db/migrate/20150607012707_add_indexes_on_costumes.rb
smalruby-editor-0.4.1 db/migrate/20150607012707_add_indexes_on_costumes.rb
smalruby-editor-0.4.0-x86-mingw32 db/migrate/20150607012707_add_indexes_on_costumes.rb
smalruby-editor-0.4.0 db/migrate/20150607012707_add_indexes_on_costumes.rb