Sha256: af08ab0070b3f5b3907f7b60542ceca0804f3f723907eb4dec78fac8dbfbe89d

Contents?: true

Size: 474 Bytes

Versions: 5

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

class RemoveCategories < ActiveRecord::Migration[7.0]
  def change
    drop_table :page_categories do |t|
      t.integer :page_id
      t.integer :category_id
      t.index :category_id
      t.index :page_id
    end

    drop_table :categories do |t|
      t.string :name
      t.string :slug
      t.integer :position
      t.datetime :created_at, null: false
      t.datetime :updated_at, null: false
      t.index :slug
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pages_core-3.15.5 db/migrate/20240508145300_remove_categories.rb
pages_core-3.15.4 db/migrate/20240508145300_remove_categories.rb
pages_core-3.15.3 db/migrate/20240508145300_remove_categories.rb
pages_core-3.15.2 db/migrate/20240508145300_remove_categories.rb
pages_core-3.15.1 db/migrate/20240508145300_remove_categories.rb