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.29.1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.28.4 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.9 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.29.0 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.28.3 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.8 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.29.0.rc4 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.29.0.rc3 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.29.0.rc2 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.29.0.rc1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.28.2 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.7 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.28.1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.6 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.10 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.26.9 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.28.0 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.27.5 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.28.0.rc5 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.28.0.rc4 db/migrate/20170213081133_create_decidim_newsletters.rb