Class: HiveSQL::Tx::Custom::Community
- Inherits:
-
HiveSQL::Tx::Custom
- Object
- ActiveRecord::Base
- SqlBase
- HiveSQL::Tx::Custom
- HiveSQL::Tx::Custom::Community
- Defined in:
- lib/hive_sql/models/tx/custom/community.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SqlBase
Class Method Details
.ops ⇒ Object
23 24 25 |
# File 'lib/hive_sql/models/tx/custom/community.rb', line 23 def self.ops distinct.normalized_json.pluck(Arel.sql "JSON_VALUE([TxCustoms].[json_metadata], '$[0]') AS ops") end |
Instance Method Details
#payload ⇒ Object
27 28 29 |
# File 'lib/hive_sql/models/tx/custom/community.rb', line 27 def payload JSON[][1] rescue nil end |