Sha256: 4aa3d6c81ded2f7423300c2b98cb14183fb3aef9b4663f5b09f906673455fe65

Contents?: true

Size: 138 Bytes

Versions: 8

Compression:

Stored size: 138 Bytes

Contents

class AddCategoryIdToBlogPosts < ActiveRecord::Migration[5.1]
  def change
  	add_reference :blog_posts, :category, index: true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhatu-0.1.25 db/migrate/20171104163658_add_category_id_to_blog_posts.rb
dhatu-0.1.24 db/migrate/20171104163658_add_category_id_to_blog_posts.rb
dhatu-0.1.23 db/migrate/20171104163658_add_category_id_to_blog_posts.rb
dhatu-0.1.22 db/migrate/20171104163658_add_category_id_to_blog_posts.rb
dhatu-0.1.21 db/migrate/20171104163658_add_category_id_to_blog_posts.rb
dhatu-0.1.20 db/migrate/20171104163658_add_category_id_to_blog_posts.rb
dhatu-0.1.19 db/migrate/20171104163658_add_category_id_to_blog_posts.rb
dhatu-0.1.18 db/migrate/20171104163658_add_category_id_to_blog_posts.rb