Sha256: 3ae98a2a622962bbb7ae759eda75c55ea423393fc25c0c75abc88010b22b75de

Contents?: true

Size: 1.01 KB

Versions: 34

Compression:

Stored size: 1.01 KB

Contents

#
# AUTO GENERATED MIGRATION
# This migration was auto generated by the CanvasSync Gem.
# You can add new columns to this table, but removing or
# re-naming ones created here may break Canvas Syncing.
#


class CreateAssignments < ActiveRecord::Migration[5.1]
  def change
    create_table :assignments do |t|
      t.bigint :canvas_assignment_id, null: false
      t.string :title
      t.text :description
      t.datetime :due_at
      t.datetime :unlock_at
      t.datetime :lock_at
      t.integer :points_possible
      t.integer :min_score
      t.integer :max_score
      t.integer :mastery_score
      t.string :grading_type
      t.string :submission_types
      t.string :workflow_state
      t.integer :context_id
      t.string :context_type
      t.integer :canvas_assignment_group_id
      t.integer :grading_scheme_id
      t.integer :grading_standard_id

      t.timestamps
    end

    add_index :assignments, :canvas_assignment_id, unique: true
    add_index :assignments, [:context_id, :context_type]
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
canvas_sync-0.9.4 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.9.3 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.9.2 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.9.1 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.9.0 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.8.4 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.8.3 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.8.2 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.8.1 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.8.0 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.7.3 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.7.2 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.7.1 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.7.0 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.6.4 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.6.3 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.6.2 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.6.1 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.6.0 spec/dummy/db/migrate/20180215214227_create_assignments.rb
canvas_sync-0.5.4 spec/dummy/db/migrate/20180215214227_create_assignments.rb