Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 2 files changed
  • 0 comments
  • 2 contributors
6 db/migrate/20130107053554_add_proposal_id_to_document_and_index.rb
... ... @@ -0,0 +1,6 @@
  1 +class AddProposalIdToDocumentAndIndex < ActiveRecord::Migration
  2 + def change
  3 + add_column :documents, :proposal_id, :integer
  4 + add_index :documents, :proposal_id
  5 + end
  6 +end
23 db/migrate/20130107053835_adds_missing_indexes.rb
... ... @@ -0,0 +1,23 @@
  1 +class AddsMissingIndexes < ActiveRecord::Migration
  2 + def change
  3 + add_index :comments, :commentable_id
  4 + add_index :comments, :commentable_type
  5 + add_index :comments, [:commentable_type, :commentable_type], :unique => true
  6 + add_column :links, :proposal_id, :integer
  7 + add_index :links, :proposal_id
  8 + add_index :paragraphs, :section_id
  9 + add_index :paragraphs, :position
  10 + add_index :participants, :organization_id
  11 + add_index :proposals, :organization_id
  12 + add_column :sections, :proposal_id, :integer
  13 + add_index :sections, :proposal_id
  14 + add_column :sections, :position, :integer
  15 + add_index :sections, :position
  16 + add_index :sentences, :paragraph_id
  17 + add_column :sentences, :position, :integer
  18 + add_index :sentences, :position
  19 + add_index :votes, :proposal_id
  20 + add_index :votes, :participant_id
  21 + add_index :votes, :value
  22 + end
  23 +end

No commit comments for this range

Something went wrong with that request. Please try again.