Sha256: c2cd3dca52602bd581620ef6be3012c229d57058ec4c6fd843d5c34d2c13ae05

Contents?: true

Size: 691 Bytes

Versions: 8

Compression:

Stored size: 691 Bytes

Contents

class CreateCoalescingPandaAssignments < ActiveRecord::Migration
  def change
    create_table :coalescing_panda_assignments do |t|
      t.belongs_to :coalescing_panda_course
      t.string :name
      t.string :description
      t.string :canvas_assignment_id
      t.string :sis_id
      t.string :workflow_state
      t.float :points_possible
      t.datetime :due_at
      t.datetime :unlock_at
      t.datetime :lock_at

      t.timestamps
    end

    add_index :coalescing_panda_assignments, :coalescing_panda_course_id, name: :index_assignments_course
    add_index :coalescing_panda_assignments, :canvas_assignment_id
    add_index :coalescing_panda_assignments, :sis_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coalescing_panda-3.1.5 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.1.4 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.1.3 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.1.2 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.1.1 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.1.0 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.0.1 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.0.0 db/migrate/20141120151940_create_coalescing_panda_assignments.rb