view .svn/pristine/c7/c7478ec9fe0088baa4bd4e0b03aab480956ab36b.svn-base @ 1368:987e71e73116 bibliography_testing

Setup of testing framework for the bibliography plugin.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 20 Aug 2013 18:00:06 +0100
parents cbb26bc654de
children
line wrap: on
line source
class CreateChanges < ActiveRecord::Migration
  def self.up
    create_table :changes do |t|
      t.column :changeset_id, :integer, :null => false
      t.column :action, :string,  :limit => 1, :default => "", :null => false
      t.column :path, :string, :default => "", :null => false
      t.column :from_path, :string
      t.column :from_revision, :integer
    end
    add_index :changes, [:changeset_id], :name => :changesets_changeset_id
  end

  def self.down
    drop_table :changes
  end
end