Sha256: 64ae3250f9516055b8bc8798da3228847a62000c66940cd6c9e6c51ca73a1a8a

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

class CreateCoalescingPandaAssignments < ActiveRecord::Migration
  def change
    create_table :coalescing_panda_assignments do |t|
      t.belongs_to :coalescing_panda_course, null: false
      t.string :name
      t.string :description
      t.string :canvas_assignment_id, null: false
      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, :canvas_assignment_id], name: :index_assignments_course, unique: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coalescing_panda-3.1.9 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.1.8 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.1.7 db/migrate/20141120151940_create_coalescing_panda_assignments.rb
coalescing_panda-3.1.6 db/migrate/20141120151940_create_coalescing_panda_assignments.rb