Sha256: 834077a96f68f927d4863bec27b641f732726cbeda9ffdb21fbdc5017ac29a34

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

class AddNotifyNoteChapters < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_notify_chapters do |t|
      t.string :title, null: false
      t.boolean :active, null: false, default: false
      t.references :decidim_component, index: { name: "index_decidim_notify_chapters_on_decidim_component_id" }

      t.timestamps
    end

    add_reference :decidim_notify_notes, :decidim_notify_chapter, index: { name: "index_decidim_notify_notes_on_decidim_notify_chapter_id" }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-notify-0.5 db/migrate/20200514144040_add_notify_note_chapters.rb
decidim-notify-0.4 db/migrate/20200514144040_add_notify_note_chapters.rb
decidim-notify-0.3 db/migrate/20200514144040_add_notify_note_chapters.rb