Sha256: 317b7e31cc43923d9fe0347e00337254b1d60690d4f465d0392fd5349fe4abe1

Contents?: true

Size: 211 Bytes

Versions: 2

Compression:

Stored size: 211 Bytes

Contents

class AddSlugToCategory < ActiveRecord::Migration[6.0]
  def change
  	add_column :rails_marketplace_categories, :slug, :string
  	add_index :rails_marketplace_categories, :slug, :unique => true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_marketplace-0.0.2 db/migrate/20161110021131_add_slug_to_category.rb
rails_marketplace-0.0.1 db/migrate/20161110021131_add_slug_to_category.rb