13 lines
327 B
Ruby
13 lines
327 B
Ruby
class ChangeWorkColumn < ActiveRecord::Migration
|
|
def up
|
|
change_column :works, :score_open, :boolean, :default => false
|
|
add_column :works, :online_evaluation, :boolean, :default => false
|
|
add_column :works, :score_valid, :boolean, :default => true
|
|
|
|
Work.update_all(:score_open => 0)
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|