Sha256: 84da5e0c7e8e4afc8ce65c1587ffd3b21993363026c8733ddc78378f766b4774

Contents?: true

Size: 429 Bytes

Versions: 134

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

class CreateDecidimNewsletters < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_newsletters do |t|
      t.jsonb :subject
      t.jsonb :body
      t.references :organization
      t.references :author, foreign_key: { to_table: :decidim_users }
      t.integer :total_recipients
      t.integer :total_deliveries
      t.datetime :sent_at

      t.timestamps
    end
  end
end

Version data entries

134 entries across 134 versions & 2 rubygems

Version Path
decidim-core-0.26.8 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.4 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.3 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.7 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.5 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.2 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.4 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.0 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.3 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.0.rc2 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.0.rc1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.2 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.0 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.0.rc2 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.0.rc1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.25.2 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.25.1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.25.0 db/migrate/20170213081133_create_decidim_newsletters.rb