wip: wcag structure
This commit is contained in:
parent
4c31dbbed0
commit
4dd445be57
48 changed files with 461 additions and 137 deletions
12
db/migrate/20250101163808_create_guidelines.rb
Normal file
12
db/migrate/20250101163808_create_guidelines.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class CreateGuidelines < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :guidelines do |t|
|
||||
t.references :principle, null: false, foreign_key: true
|
||||
t.integer :number
|
||||
t.string :name_de
|
||||
t.string :name_en
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
6
db/migrate/20250101163835_add_guideline_id_to_checks.rb
Normal file
6
db/migrate/20250101163835_add_guideline_id_to_checks.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddGuidelineIdToChecks < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_reference :checks, :guideline, null: false, foreign_key: true
|
||||
remove_reference :checks, :principle
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class RemoveUniqueNumberConstraintOnChecks < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
remove_index :checks, :number
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue