Sha256: f8dd017dfecb8a9e7102d7e48c47788f791a84b820f03122d4e7ed93c02fdeaa

Contents?: true

Size: 498 Bytes

Versions: 73

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

class AddConferencesPartner < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_conferences_partners do |t|
      t.references :decidim_conference, index: true
      t.string :name, null: false
      t.string :partner_type, null: false
      t.integer :weight, null: false, default: 0
      t.string :link
      t.string :logo, null: false

      t.timestamps
    end

    add_index :decidim_conferences_partners, [:weight, :partner_type]
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
decidim-conferences-0.20.1 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.20.0 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.19.1 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.18.1 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.19.0 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.17.2 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.18.0 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.17.1 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.16.1 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.17.0 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.16.0 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.15.2 db/migrate/20181004144411_add_conferences_partner.rb
decidim-conferences-0.15.1 db/migrate/20181004144411_add_conferences_partner.rb