feat: Show parent scales on browse page

This commit is contained in:
Nelson Jovel 2024-09-25 11:45:16 -07:00
parent e5e969b968
commit 37042aead5
13 changed files with 373 additions and 306 deletions

View file

@ -0,0 +1,6 @@
class AddNameToScale < ActiveRecord::Migration[7.1]
def change
add_column :scales, :name, :string
add_column :scales, :description, :string
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_06_07_205816) do
ActiveRecord::Schema[7.1].define(version: 2024_09_24_173209) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -373,6 +373,8 @@ ActiveRecord::Schema[7.1].define(version: 2024_06_07_205816) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "survey_items_count"
t.string "name"
t.string "description"
t.index ["measure_id"], name: "index_scales_on_measure_id"
t.index ["scale_id"], name: "index_scales_on_scale_id", unique: true
end