CMSgov/dpc-app

View on GitHub
dpc-web/db/migrate/20190916190939_create_tags.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateTags < ActiveRecord::Migration[5.2]
  def change
    create_table :tags do |t|
      t.string :name

      t.timestamps
    end

    create_table :taggings do |t|
      t.integer :tag_id
      t.references :taggable, polymorphic: true
      t.timestamps
    end
  end
end