<commit_before># ActiveType

This gem adds PostgreSQL user defined types support for Active Record (Ruby on Rails).

To use it you should:
1) Create a new class in PostgreSQL: 
    
    CREATE TYPE your_type AS (property1 varchar, property2 varchar, property3 varchar);

2) Extend ActiveType::TypeClass class and define your own type class properties:
    
    properties :property1, :property2, :property3

3) Also you should manualy specify new column in your model table:
    
    add_column :model_table_name, :your_type_name, :your_type<commit_msg>edit readme file<commit_after># ActiveType

This gem adds PostgreSQL user defined types support for Active Record (Ruby on Rails).

To use it you should:

1) Create a new class in PostgreSQL: 
    
    CREATE TYPE your_type AS (property1 varchar, property2 datetime, property3 text);

2) Extend ActiveType::TypeClass class and define your own type class properties:
    
    property :property1, :string
    property :property2, :datetime
    property :property3, :text

3) Also you should manualy specify new column in your model table:
    
    add_column :model_table_name, :your_type_name, :your_type
{'fraction_non_alphanumeric': 0.05704407951598963, 'fraction_numerical': 0.015557476231633534, 'mean_word_length': 4.287671232876712, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '153767', 'n_tokens_mistral': 338, 'n_tokens_neox': 321, 'n_words': 144}