Sha256: be83ca8d16c163f3f5185e46e46dd0521798cd1ab71bdc0b133ebd5f56959e30

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

class NotificationHandlerMigration < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :notifications do |t|
      t.references :target, polymorphic: true, index: true
      t.references :object, polymorphic: true, index: true

      t.boolean :read, default: false, null: false, index: true

      t.text :metadata

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notification-handler-3.0.2 lib/generators/templates/install/notifications_migration.rb.erb
notification-handler-2.0.0 lib/generators/templates/install/notifications_migration.rb.erb
notification-handler-1.2.6 lib/generators/templates/install/notifications_migration.rb.erb