2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-10-03 16:14:09 +02:00
|
|
|
class CreateReleaseNotes < ActiveRecord::Migration[7.0]
|
|
|
|
def change
|
|
|
|
create_table :release_notes do |t|
|
|
|
|
t.date :released_on
|
|
|
|
t.boolean :published, default: false, null: false
|
|
|
|
t.string :categories, array: true, default: []
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :release_notes, :released_on
|
|
|
|
add_index :release_notes, :published
|
|
|
|
add_index :release_notes, :categories, using: :gin
|
|
|
|
end
|
|
|
|
end
|