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.26.8 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.27.4 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.27.3 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.7 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.5 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.27.2 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.27.1 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.4 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.27.0 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.3 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.27.0.rc2 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.27.0.rc1 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.2 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.1 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.0 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.0.rc2 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.26.0.rc1 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.25.2 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.25.1 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb
decidim-proposals-0.25.0 db/migrate/20180326091532_create_decidim_proposals_collaborative_drafts.rb