Sha256: 1a02c3d30a3e5ea7db5760d599d33ec4cdd22ffe2f62c2bfb8614de81e9ec66c

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

class CreateMiniBlogArticleTagRelations < ActiveRecord::Migration[5.1]
  def change
    create_table :mini_blog_article_tag_relations do |t|
      t.integer :article_id, null: false, index: true, limit: 8
      t.foreign_key :mini_blog_articles, column: :article_id
      t.integer :tag_id, null: false, index: true, limit: 8
      t.foreign_key :mini_blog_tags, column: :tag_id

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mini_blog-0.1.1 db/migrate/20180224113006_create_mini_blog_article_tag_relations.rb
mini_blog-0.1.0 db/migrate/20180224113006_create_mini_blog_article_tag_relations.rb