Sha256: a00f77bcffe26d9ae922a3848c68c96697557ff90b87083af6830fbb295bd4b3

Contents?: true

Size: 187 Bytes

Versions: 2

Compression:

Stored size: 187 Bytes

Contents

class AddSlugToExpositonPosts < ActiveRecord::Migration[5.1]
  def change
    add_column :exposition_posts, :slug, :string

    add_index :exposition_posts, :slug, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
exposition-0.0.5.7.pre.alpha db/migrate/20160112202302_add_slug_to_expositon_posts.rb
exposition-0.0.5.6.pre.alpha db/migrate/20160112202302_add_slug_to_expositon_posts.rb