Review Board 1.5.5

In database, the column "grade_entry_items.out_of" should be a float

Updated 1 year, 11 months ago

Bryan Shen Reviewers
markus_developers
None MarkUs Source Code Repository
When Markus is hosted with Postgres, an instructor was not able to open the grade entries view because the the out_of was a string in database.
Manual

Diff revision 2 (Latest)

1 2
1 2

  1. trunk/db/migrate/20100219213659_turn_out_of_into_float.rb: Loading...
trunk/db/migrate/20100219213659_turn_out_of_into_float.rb
New File

   
1
class TurnOutOfIntoFloat < ActiveRecord::Migration

   
2
  def self.up

   
3
    remove_column :grade_entry_items, :out_of

   
4
    add_column :grade_entry_items, :out_of, :float

   
5
  end

   
6

   

   
7
  def self.down

   
8
    remove_column :grade_entry_items, :out_of

   
9
    add_column :grade_entry_items, :out_of, :string

   
10
  end

   
11
end
  1. trunk/db/migrate/20100219213659_turn_out_of_into_float.rb: Loading...