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
|
||||
Loading…
Add table
Add a link
Reference in a new issue