Sha256: 8e92c125670309cd490d91ccaf5ab98be97fb8bcf81ea88962c968cedc08edff

Contents?: true

Size: 402 Bytes

Versions: 122

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

class CreateDecidimNotifications < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_notifications do |t|
      t.references :decidim_user, null: false
      t.references :decidim_resource, polymorphic: true, index: false, null: false
      t.string :event_name, null: false
      t.string :event_class, null: false
      t.timestamps
    end
  end
end

Version data entries

122 entries across 122 versions & 2 rubygems

Version Path
decidim-core-0.6.0 db/migrate/20170808071019_create_decidim_notifications.rb
decidim-0.6.0 decidim-core/db/migrate/20170808071019_create_decidim_notifications.rb