Sha256: bfb6b5bc3a837db29822449a6caabd48d58cde925c05ffdd983ad16339313012
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
<%= autogenerated_migration_warning %> class CreateSubmissions < ActiveRecord::Migration[5.1] def change create_table :submissions do |t| t.bigint :canvas_submission_id, null: false t.bigint :canvas_course_id t.bigint :canvas_assignment_id t.bigint :canvas_user_id t.datetime :submitted_at t.datetime :graded_at t.integer :score t.integer :points_possible t.timestamps end add_index :submissions, :canvas_submission_id, unique: true add_index :submissions, :canvas_assignment_id add_index :submissions, :canvas_course_id add_index :submissions, :canvas_user_id end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canvas_sync-0.3.15 | lib/canvas_sync/generators/templates/models/create_submissions.rb |
canvas_sync-0.3.14 | lib/canvas_sync/generators/templates/models/create_submissions.rb |