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.20.1 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.20.0 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.19.1 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.18.1 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.19.0 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.17.2 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.18.0 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.17.1 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.16.1 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.17.0 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.16.0 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.15.2 db/migrate/20180626151505_add_conferences.rb
decidim-conferences-0.15.1 db/migrate/20180626151505_add_conferences.rb