Class: CreateTerms
- Inherits:
-
Object
- Object
- CreateTerms
- Defined in:
- lib/canvas_sync/generators/templates/migrations/create_terms.rb
Overview
<%= autogenerated_migration_warning %>
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/canvas_sync/generators/templates/migrations/create_terms.rb', line 4 def change create_table :terms do |t| t.integer :canvas_id, null: false t.string :name t.datetime :start_at t.datetime :end_at t.string :workflow_state t.integer :grading_period_group_id t.string :sis_id t. end add_index :terms, :canvas_id, unique: true end |