Sha256: 5428eea7680874054e0dbe2923d511f3c0d162ad737cb286fcbab670a7e5b997

Contents?: true

Size: 575 Bytes

Versions: 3

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

class CreateNotifyAuthors < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_notify_authors do |t|
      t.references :decidim_user, index: { name: "index_decidim_notify_authors_on_decidim_user_id" }
      t.references :decidim_component, index: { name: "index_decidim_notify_authors_on_decidim_component_id" }

      t.integer :code, null: false, default: 0, index: { name: "index_decidim_notify_authors_on_code" }
      t.string :full_name
      t.string :avatar
      t.string :email

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-notify-0.5 db/migrate/20200505061547_create_notify_authors.rb
decidim-notify-0.4 db/migrate/20200505061547_create_notify_authors.rb
decidim-notify-0.3 db/migrate/20200505061547_create_notify_authors.rb