Class: CreateAdmins
- Inherits:
-
Object
- Object
- CreateAdmins
- Defined in:
- lib/canvas_sync/generators/templates/migrations/create_admins.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 18 19 |
# File 'lib/canvas_sync/generators/templates/migrations/create_admins.rb', line 4 def change create_table :admins do |t| t.bigint :canvas_id, null: false t.string :role_name t.bigint :canvas_account_id t.bigint :canvas_role_id t.bigint :canvas_user_id t.string :workflow_state t. end add_index :admins, :canvas_id, unique: true add_index :admins, :canvas_role_id add_index :admins, :canvas_user_id add_index :admins, :canvas_account_id end |