Sha256: a13eb390c3d0e99b9f8202d756e31076ef15fa04916e5605f42e4a3cbdcfe7f3

Contents?: true

Size: 320 Bytes

Versions: 6

Compression:

Stored size: 320 Bytes

Contents

module RailsWorkflow
  module Db
    module Pg
      COUNT_STATUSES = <<-SQL
      select status, cnt from (
        select row_number() over (partition by status),
          count(*) over (partition by status) cnt,
          status from rails_workflow_processes)t
      where row_number = 1
      SQL

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_workflow-0.3.7 lib/rails_workflow/db/pg.rb
rails_workflow-0.3.6 lib/rails_workflow/db/pg.rb
rails_workflow-0.3.5 lib/rails_workflow/db/pg.rb
rails_workflow-0.3.4 lib/rails_workflow/db/pg.rb
rails_workflow-0.3.3 lib/rails_workflow/db/pg.rb
rails_workflow-0.3.2 lib/rails_workflow/db/pg.rb