Sha256: a9aaa40020efff049a1d5571d53fd5005200d8f7d6265f41426280e3e1350cf6

Contents?: true

Size: 895 Bytes

Versions: 71

Compression:

Stored size: 895 Bytes

Contents

# frozen_string_literal: true

class AddConferenceRegistrationTypes < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_conferences_registration_types do |t|
      t.references :decidim_conference, index: { name: "idx_registration_types_on_decidim_conference_id" }
      t.jsonb :title, null: false
      t.jsonb :description, null: false
      t.decimal :price, null: false, default: 0, precision: 8, scale: 2
      t.integer :weight, null: false, default: 0
      t.datetime :published_at, index: true

      t.timestamps
    end

    create_table :decidim_conferences_conference_meeting_registration_types do |t|
      t.belongs_to :registration_type, null: false, index: { name: "index_meetings_on_decidim_registration_type_id" }
      t.belongs_to :conference_meeting, null: false, index: { name: "index_registrations_on_decidim_conference_meeting_id" }
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.28.4 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.27.9 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.29.0 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.28.3 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.27.8 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.29.0.rc4 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.29.0.rc3 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.29.0.rc2 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.29.0.rc1 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.28.2 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.27.7 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.28.1 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.27.6 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.26.10 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.26.9 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.28.0 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.27.5 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.28.0.rc5 db/migrate/20181023142325_add_conference_registration_types.rb
decidim-conferences-0.28.0.rc4 db/migrate/20181023142325_add_conference_registration_types.rb