Sha256: c57fe874152bd10e5dca43b7777e0ed9357b195de0b639b4d84b994cac1b85ee

Contents?: true

Size: 154 Bytes

Versions: 19

Compression:

Stored size: 154 Bytes

Contents

class AddIndexToShops < ActiveRecord::Migration
  def self.up
    add_index :shops, :name
  end

  def self.down
    remove_index :shops, :name
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
shopify-sinatra-app-0.3.4 example/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.3.3 example/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.3.2 example/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.3.1 example/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.3.0 example/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.2.0 example/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.1.5 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.1.4 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.1.3 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.1.2 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.1.0 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.0.8 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.0.7 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.0.6 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.0.5 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.0.4 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.0.3 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.0.2 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
shopify-sinatra-app-0.0.1 lib/generator/db/migrate/20140414042317_add_index_to_shops.rb