7 lines
169 B
Ruby
7 lines
169 B
Ruby
|
class AddIndexToInviteCode < ActiveRecord::Migration
|
||
|
def change
|
||
|
add_column :courses, :qrcode, :string
|
||
|
add_index :courses, :invite_code, unique: true
|
||
|
end
|
||
|
end
|