Forgot about Objectives.

This commit is contained in:
Jez Caudle 2023-01-27 09:25:10 +00:00
parent 6006b8bc97
commit 089f535a51
4 changed files with 22 additions and 1 deletions

0
app/models/observer.rb Normal file
View File

View File

@ -0,0 +1,11 @@
class CreateObjectives < ActiveRecord::Migration[7.0]
def change
create_table :objectives do |t|
t.references :caf, null: false, foreign_key: true
t.string :name
t.text :description
t.timestamps
end
end
end

12
db/schema.rb generated
View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2022_06_11_194255) do
ActiveRecord::Schema[7.0].define(version: 2023_01_27_091956) do
create_table "action_text_rich_texts", charset: "utf8mb4", force: :cascade do |t|
t.string "name", null: false
t.text "body", size: :long
@ -71,6 +71,15 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_11_194255) do
t.index ["user_id"], name: "index_companies_users_on_user_id"
end
create_table "objectives", charset: "utf8mb4", force: :cascade do |t|
t.bigint "caf_id", null: false
t.string "name"
t.text "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["caf_id"], name: "index_objectives_on_caf_id"
end
create_table "principles", charset: "utf8mb4", force: :cascade do |t|
t.bigint "caf_id", null: false
t.string "name"
@ -133,6 +142,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_11_194255) do
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "cafs", "companies"
add_foreign_key "objectives", "cafs"
add_foreign_key "principles", "cafs"
add_foreign_key "subprincipleitemgroups", "subprinciples"
add_foreign_key "subprincipleitems", "subprincipleitemgroups"

Binary file not shown.