Sha256: 3ec6f17675d6976bf6c810b00f17e890dd3355d45c862cba13ddb836f21f14de

Contents?: true

Size: 202 Bytes

Versions: 7

Compression:

Stored size: 202 Bytes

Contents

# frozen_string_literal: true

class AddCategoryIdToSpinaBlogPosts < ActiveRecord::Migration[5.0]
  def change
    add_reference :spina_blog_posts, :category, to_table: :spina_blog_categories
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.3.1 db/migrate/4_add_category_id_to_spina_blog_posts.rb
spina-admin-conferences-blog-0.2.0 db/migrate/4_add_category_id_to_spina_blog_posts.rb
spina-admin-conferences-blog-0.1.4 db/migrate/4_add_category_id_to_spina_blog_posts.rb
spina-admin-conferences-blog-0.1.3 db/migrate/4_add_category_id_to_spina_blog_posts.rb
spina-admin-conferences-blog-0.1.2 db/migrate/4_add_category_id_to_spina_blog_posts.rb
spina-admin-conferences-blog-0.1.1 db/migrate/4_add_category_id_to_spina_blog_posts.rb
spina-admin-conferences-blog-0.1.0 db/migrate/4_add_category_id_to_spina_blog_posts.rb