annotate .svn/pristine/c7/c7478ec9fe0088baa4bd4e0b03aab480956ab36b.svn-base @ 976:0befb332f41a get_statistics

get stats up to current date
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 25 Oct 2012 13:50:45 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 class CreateChanges < ActiveRecord::Migration
Chris@909 2 def self.up
Chris@909 3 create_table :changes do |t|
Chris@909 4 t.column :changeset_id, :integer, :null => false
Chris@909 5 t.column :action, :string, :limit => 1, :default => "", :null => false
Chris@909 6 t.column :path, :string, :default => "", :null => false
Chris@909 7 t.column :from_path, :string
Chris@909 8 t.column :from_revision, :integer
Chris@909 9 end
Chris@909 10 add_index :changes, [:changeset_id], :name => :changesets_changeset_id
Chris@909 11 end
Chris@909 12
Chris@909 13 def self.down
Chris@909 14 drop_table :changes
Chris@909 15 end
Chris@909 16 end