trustieforge/db/migrate/20141230081209_add_column_t...

7 lines
223 B
Ruby

class AddColumnToHomeworkattaches < ActiveRecord::Migration
def change
add_column :homework_attaches, :score, :float, default: 0
add_column :homework_attaches, :is_teacher_score, :integer, :default => 0
end
end