Gui improvements, ordering
This commit is contained in:
parent
6db0b64f4c
commit
42c077f6ab
28 changed files with 105 additions and 40 deletions
|
|
@ -0,0 +1,8 @@
|
|||
class AddPositionToSuccessCriteria < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :success_criteria, :position, :integer, null: false
|
||||
add_index :success_criteria, [:element_id, :position], unique: true
|
||||
add_index :elements, [:page_id, :position], unique: true
|
||||
add_index :pages, [:report_id, :position], unique: true
|
||||
end
|
||||
end
|
||||
5
db/migrate/20241101013336_change_position_on_elements.rb
Normal file
5
db/migrate/20241101013336_change_position_on_elements.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class ChangePositionOnElements < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
change_column(:elements, :position, :integer, default: nil, null: false)
|
||||
end
|
||||
end
|
||||
5
db/migrate/20241101015725_add_notes_to_pages.rb
Normal file
5
db/migrate/20241101015725_add_notes_to_pages.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddNotesToPages < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :pages, :notes, :text
|
||||
end
|
||||
end
|
||||
9
db/schema.rb
generated
9
db/schema.rb
generated
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_10_31_183755) do
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_11_01_015725) do
|
||||
create_table "account_remember_keys", force: :cascade do |t|
|
||||
t.string "key", null: false
|
||||
t.datetime "deadline", null: false
|
||||
|
|
@ -124,7 +124,8 @@ ActiveRecord::Schema[7.2].define(version: 2024_10_31_183755) do
|
|||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "page_id", null: false
|
||||
t.integer "position", default: 0, null: false
|
||||
t.integer "position", null: false
|
||||
t.index ["page_id", "position"], name: "index_elements_on_page_id_and_position", unique: true
|
||||
t.index ["page_id"], name: "index_elements_on_page_id"
|
||||
end
|
||||
|
||||
|
|
@ -153,6 +154,8 @@ ActiveRecord::Schema[7.2].define(version: 2024_10_31_183755) do
|
|||
t.integer "report_id", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.text "notes"
|
||||
t.index ["report_id", "position"], name: "index_pages_on_report_id_and_position", unique: true
|
||||
t.index ["report_id"], name: "index_pages_on_report_id"
|
||||
end
|
||||
|
||||
|
|
@ -188,7 +191,9 @@ ActiveRecord::Schema[7.2].define(version: 2024_10_31_183755) do
|
|||
t.datetime "updated_at", null: false
|
||||
t.integer "check_id"
|
||||
t.integer "priority"
|
||||
t.integer "position", null: false
|
||||
t.index ["check_id"], name: "index_success_criteria_on_check_id"
|
||||
t.index ["element_id", "position"], name: "index_success_criteria_on_element_id_and_position", unique: true
|
||||
t.index ["element_id"], name: "index_success_criteria_on_element_id"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue