Sha256: 63dc9b7de664f4638f3220fd6f26bf0d21d28146fbb77857709ac94da4c5bf09

Contents?: true

Size: 1.25 KB

Versions: 73

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true

class AddConferences < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_conferences do |t|
      t.jsonb :title, null: false
      t.jsonb :slogan, null: false
      t.string :slug, null: false
      t.string :hashtag
      t.string :reference
      t.string :location
      t.integer :decidim_organization_id,
                foreign_key: true,
                index: { name: "index_decidim_conferences_on_decidim_organization_id" }

      t.jsonb :short_description, null: false
      t.jsonb :description, null: false
      t.string :hero_image
      t.string :banner_image
      t.boolean :promoted, default: false
      t.datetime :published_at
      t.jsonb :objectives, null: false
      t.boolean :show_statistics, default: false
      t.date :start_date
      t.date :end_date
      t.boolean :scopes_enabled, null: false, default: true
      t.integer :decidim_scope_id

      t.boolean :registrations_enabled, null: false, default: false
      t.integer :available_slots, null: false, default: 0
      t.jsonb :registration_terms

      t.index [:decidim_organization_id, :slug],
              name: "index_unique_conference_slug_and_organization",
              unique: true

      t.timestamps
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

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