summaryrefslogtreecommitdiff
blob: c7fff767a383301b04212b7e30c06711370aac00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class CreateReferences < ActiveRecord::Migration
  def self.up
    create_table :references do |t|
      t.integer :revision_id
      t.text :title
      t.text :url
      t.string :type
      t.timestamps
    end
    
    add_index :references, :revision_id
  end

  def self.down
    remove_index :references, :revision_id
    drop_table :references
  end
end