Friday, September 20, 2024 12:11:32 AM
> settings

Customize


Authenticate

> 20240813213031_projects.rb
# frozen_string_literal: true

class Projects < ActiveRecord::Migration[7.1]
  def change
    create_table :projects, if_not_exists: true do |t|
      t.string :public_id, null: false # This is a slug, not a uuid
      t.string :name, null: false
      t.string :os_path, null: false
      t.bigint :role_visibility, null: false
      t.json :allowed_paths, default: []
      t.json :disallowed_paths, default: []
      t.text :description, default: ""
      t.json :links, default: {}
      t.date :start_date
      t.date :end_date
      t.timestamps

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