Class: ActiveRecord::ConnectionAdapters::SQLite3::TableDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::SQLite3::TableDefinition
- Defined in:
- lib/potter/core_ext/active_record.rb
Instance Method Summary collapse
Instance Method Details
#json(name) ⇒ Object
11 12 13 14 |
# File 'lib/potter/core_ext/active_record.rb', line 11 def json(name) text name check_constraint %{json_valid(#{name}, 6)}, name: "#{name}_valid_json" end |
#jsonb(name) ⇒ Object
4 5 6 7 |
# File 'lib/potter/core_ext/active_record.rb', line 4 def jsonb(name) blob name check_constraint %{json_valid(#{name}, 6)}, name: "#{name}_valid_json" end |