Sha256: 4d6d32036931bea48b83200294454da17831b3737f6b725e51011744fdce2c17

Contents?: true

Size: 398 Bytes

Versions: 6

Compression:

Stored size: 398 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
decidim-core-0.2.0 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.1.0 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.0.8.1 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.0.7 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.0.6 db/migrate/20170213081133_create_decidim_newsletters.rb
decidim-core-0.0.5 db/migrate/20170213081133_create_decidim_newsletters.rb