forge
caicai8 5 years ago
commit b7affb539e

@ -3,11 +3,10 @@ class Admins::AboutsController < Admins::BaseController
def index
projects = Project.all.project_statics_select
by_time = params[:time]
b_classify = params[:classify]
project_type = params[:project_type]
if b_classify.present?
projects = projects.where(project_type: project_type) if project_type.present?
end
if by_time.present?
case by_time.to_s

@ -0,0 +1,9 @@
class AddIssuePriosityToTable < ActiveRecord::Migration[5.2]
def change
name = %w(低 正常 高 紧急 立刻)
position = %w(1 2 3 4 5)
name.each_with_index do |n, index|
IssuePriority.create!(name:n, position: position[index])
end
end
end
Loading…
Cancel
Save