cirandas.net

ref: master

db/migrate/20140720144212_create_profile_suggestions.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
class CreateProfileSuggestions < ActiveRecord::Migration
  def change
    create_table :profile_suggestions do |t|
      t.references :person
      t.references :suggestion
      t.string :suggestion_type
      t.text :categories
      t.boolean :enabled, :default => true
      t.float :score, :default => 0

      t.timestamps
    end
    add_index :profile_suggestions, :person_id
    add_index :profile_suggestions, :suggestion_id
    add_index :profile_suggestions, :score
  end
end