socialforge/db/migrate/20131017131615_create_user_...

11 lines
257 B
Ruby
Raw Normal View History

2013-10-24 08:24:56 +08:00
class CreateUserGrades < ActiveRecord::Migration
def change
create_table :user_grades do |t|
t.integer :user_id, :null => false
t.integer :project_id, :null => false
t.float :grade, :default => 0
t.timestamps
end
end
end