Forgot about Objectives.
This commit is contained in:
parent
6006b8bc97
commit
089f535a51
0
app/models/observer.rb
Normal file
0
app/models/observer.rb
Normal file
11
db/migrate/20230127091956_create_objectives.rb
Normal file
11
db/migrate/20230127091956_create_objectives.rb
Normal 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
12
db/schema.rb
generated
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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|
|
create_table "action_text_rich_texts", charset: "utf8mb4", force: :cascade do |t|
|
||||||
t.string "name", null: false
|
t.string "name", null: false
|
||||||
t.text "body", size: :long
|
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"
|
t.index ["user_id"], name: "index_companies_users_on_user_id"
|
||||||
end
|
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|
|
create_table "principles", charset: "utf8mb4", force: :cascade do |t|
|
||||||
t.bigint "caf_id", null: false
|
t.bigint "caf_id", null: false
|
||||||
t.string "name"
|
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_attachments", "active_storage_blobs", column: "blob_id"
|
||||||
add_foreign_key "active_storage_variant_records", "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 "cafs", "companies"
|
||||||
|
add_foreign_key "objectives", "cafs"
|
||||||
add_foreign_key "principles", "cafs"
|
add_foreign_key "principles", "cafs"
|
||||||
add_foreign_key "subprincipleitemgroups", "subprinciples"
|
add_foreign_key "subprincipleitemgroups", "subprinciples"
|
||||||
add_foreign_key "subprincipleitems", "subprincipleitemgroups"
|
add_foreign_key "subprincipleitems", "subprincipleitemgroups"
|
||||||
|
|||||||
BIN
test/models/.principle_test.rb.kate-swp
Normal file
BIN
test/models/.principle_test.rb.kate-swp
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user