Sha256: 372b7d5fdce548412429cca4868154866c26fe78636541179a0e15eb62274360

Contents?: true

Size: 1.24 KB

Versions: 78

Compression:

Stored size: 1.24 KB

Contents

# frozen_string_literal: true

class CreateDecidimProposalsCollaborativeDrafts < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_proposals_collaborative_drafts do |t|
      t.text "title", null: false
      t.text "body", null: false
      t.integer "decidim_component_id", null: false
      t.integer "decidim_scope_id"
      t.string "state"
      t.string "reference"
      t.text "address"
      t.float "latitude"
      t.float "longitude"
      t.datetime "published_at"
      t.integer "authors_count", default: 0, null: false
      t.integer "versions_count", default: 0, null: false
      t.integer "contributions_count", default: 0, null: false
      t.index ["body"], name: "decidim_proposals_collaborative_draft_body_search"
      t.index ["updated_at"], name: "decidim_proposals_collaborative_drafts_on_updated_at"
      t.index ["decidim_component_id"], name: "decidim_proposals_collaborative_drafts_on_decidim_component_id"
      t.index ["decidim_scope_id"], name: "decidim_proposals_collaborative_drafts_on_decidim_scope_id"
      t.index ["state"], name: "decidim_proposals_collaborative_drafts_on_state"
      t.index ["title"], name: "decidim_proposals_collaborative_drafts_title_search"

      t.timestamps
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

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