socialforge/db/migrate/20160624032138_add_index_to...

7 lines
169 B
Ruby
Raw Normal View History

2016-06-24 13:29:36 +08:00
class AddIndexToInviteCode < ActiveRecord::Migration
def change
add_column :courses, :qrcode, :string
add_index :courses, :invite_code, unique: true
end
end