Sha256: b8ed07ef524fcdba566622f5ea38ea692f6772e79c250f10d5fb2499ac0b0adf
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
class RemovePostTagReferences < ActiveRecord::Migration[8.0] def up remove_reference :panda_cms_posts, :post_tag, foreign_key: {to_table: :panda_cms_post_tags}, type: :uuid drop_table :panda_cms_post_tags end def down create_table :panda_cms_post_tags, id: :uuid do |t| t.string :tag t.string :description t.string :slug t.timestamps t.index :tag, unique: true t.index :slug, unique: true end add_reference :panda_cms_posts, :post_tag, type: :uuid, foreign_key: {to_table: :panda_cms_post_tags} end end
Version data entries
3 entries across 3 versions & 1 rubygems