Friday, September 20, 2024 2:42:19 AM
> settings

Customize


Authenticate

> 20240918201225_post_view_content.rb
class PostViewContent < ActiveRecord::Migration[7.1]
  def change
    drop_table :posts

    create_table :posts do |t|
      t.uuid :public_id, null: false
      t.references :created_by_user, foreign_key: {to_table: :users}
      t.bigint :role_visibility
      t.integer :status
      t.string :view_path, null: false
      t.datetime :posted_at
      t.timestamps null: false

      t.index :public_id, unique: true
    end
  end
end
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8