Merge branch 'dev_item_bank' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_item_bank
commit
e2c72af555
@ -0,0 +1,9 @@
|
||||
class TagDisciplinesController < ApplicationController
|
||||
before_action :require_login
|
||||
|
||||
def create
|
||||
sub_discipline = SubDiscipline.find_by!(id: params[:sub_discipline_id])
|
||||
tag_discipline = TagDiscipline.create!(name: params[:name].to_s.strip, sub_discipline: sub_discipline, user_id: current_user.id)
|
||||
render_ok({tag_discipline_id: tag_discipline.id})
|
||||
end
|
||||
end
|
@ -0,0 +1,6 @@
|
||||
class MigrateItemType < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :item_banks, :container_id, :integer
|
||||
add_column :item_banks, :container_type, :string
|
||||
end
|
||||
end
|
Loading…
Reference in new issue