Sha256: 68ad37a815da8dcb89317d1a40bc06fcbc29f3b6a471d6ca4c59be64973c39f4

Contents?: true

Size: 227 Bytes

Versions: 35

Compression:

Stored size: 227 Bytes

Contents

class AddIndexToNotes < ActiveRecord::Migration
  def change
    add_index :notes, :person_id
    add_index :notes, :organization_id
    add_index :notes, :user_id
    add_index :notes, [:person_id, :organization_id]
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.3.0.pre3 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.3.0.pre2 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.3.0.pre1 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.beta.1 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.alpha.2 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.alpha.1 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.27 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.26 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.24 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.23 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.21 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.20 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.19 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.18 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.17 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.16 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.15 db/migrate/20130320192827_add_index_to_notes.rb
artfully_ose-1.2.0.pre.12 db/migrate/20130320192827_add_index_to_notes.rb