start of iteration 2
This commit is contained in:
parent
9fb87a74ce
commit
729ed13521
75 changed files with 705 additions and 170 deletions
6
db/migrate/20241030231244_add_page_id_to_elements.rb
Normal file
6
db/migrate/20241030231244_add_page_id_to_elements.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddPageIdToElements < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_reference :elements, :page, null: false, foreign_key: true
|
||||
add_column :elements, :position, :integer, default: 0, null: false
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue