Sha256: eda619d9b82902d3379e8595e2c6ea2654fd6af0dfa7461dbb4eccb1dd59cdae

Contents?: true

Size: 149 Bytes

Versions: 4

Compression:

Stored size: 149 Bytes

Contents

class AddSlugToPosts< ActiveRecord::Migration
  def change
    add_column :posts, :slug, :string
    add_index :posts, :slug, unique: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
human_urls-0.1.7.pre.alpha.0 test/dummy/tmp/generators/db/migrate/20220228195706_add_slug_to_posts.rb
human_urls-0.1.4.pre.alpha.0 test/dummy/tmp/generators/db/migrate/20160701154405_add_slug_to_posts.rb
human_urls-0.1.3.pre.alpha.0 test/dummy/tmp/generators/db/migrate/20160213021036_add_slug_to_posts.rb
human_urls-0.1.1 test/dummy/tmp/generators/db/migrate/20151114224559_add_slug_to_posts.rb