13 lines
265 B
Ruby
13 lines
265 B
Ruby
|
|
class CreateElements < ActiveRecord::Migration[7.1]
|
||
|
|
def change
|
||
|
|
create_table :elements do |t|
|
||
|
|
t.references :report, null: false, foreign_key: true
|
||
|
|
t.string :path
|
||
|
|
t.string :title
|
||
|
|
t.text :description
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|