Remove Fizzy Ask

Since we are not going to ship it
This commit is contained in:
Jorge Manrubia
2025-10-27 13:29:25 +01:00
parent 0617303388
commit 9317a82570
70 changed files with 1284 additions and 4693 deletions
@@ -0,0 +1,7 @@
class DeleteAiModels < ActiveRecord::Migration[8.2]
def change
drop_table :conversation_messages
drop_table :conversations
drop_table :ai_quotas
end
end
Generated
+1 -39
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.2].define(version: 2025_10_25_174618) do
ActiveRecord::Schema[8.2].define(version: 2025_10_27_113216) do
create_table "accesses", force: :cascade do |t|
t.datetime "accessed_at"
t.integer "collection_id", null: false
@@ -73,17 +73,6 @@ ActiveRecord::Schema[8.2].define(version: 2025_10_25_174618) do
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
end
create_table "ai_quotas", force: :cascade do |t|
t.datetime "created_at", null: false
t.integer "limit", null: false
t.datetime "reset_at", null: false
t.datetime "updated_at", null: false
t.integer "used", default: 0, null: false
t.integer "user_id", null: false
t.index ["reset_at"], name: "index_ai_quotas_on_reset_at"
t.index ["user_id"], name: "index_ai_quotas_on_user_id"
end
create_table "assignees_filters", id: false, force: :cascade do |t|
t.integer "assignee_id", null: false
t.integer "filter_id", null: false
@@ -214,30 +203,6 @@ ActiveRecord::Schema[8.2].define(version: 2025_10_25_174618) do
t.index ["card_id"], name: "index_comments_on_card_id"
end
create_table "conversation_messages", force: :cascade do |t|
t.string "client_message_id", null: false
t.integer "conversation_id", null: false
t.bigint "cost_in_microcents"
t.datetime "created_at", null: false
t.bigint "input_cost_in_microcents"
t.bigint "input_tokens"
t.string "model_id"
t.bigint "output_cost_in_microcents"
t.bigint "output_tokens"
t.string "role", null: false
t.datetime "updated_at", null: false
t.index ["conversation_id"], name: "index_conversation_messages_on_conversation_id"
end
create_table "conversations", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "state"
t.string "string"
t.datetime "updated_at", null: false
t.integer "user_id", null: false
t.index ["user_id"], name: "index_conversations_on_user_id", unique: true
end
create_table "creators_filters", id: false, force: :cascade do |t|
t.integer "creator_id", null: false
t.integer "filter_id", null: false
@@ -502,7 +467,6 @@ ActiveRecord::Schema[8.2].define(version: 2025_10_25_174618) do
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "ai_quotas", "users"
add_foreign_key "card_activity_spikes", "cards"
add_foreign_key "card_goldnesses", "cards"
add_foreign_key "card_not_nows", "cards"
@@ -513,8 +477,6 @@ ActiveRecord::Schema[8.2].define(version: 2025_10_25_174618) do
add_foreign_key "collection_publications", "collections"
add_foreign_key "columns", "collections"
add_foreign_key "comments", "cards"
add_foreign_key "conversation_messages", "conversations"
add_foreign_key "conversations", "users"
add_foreign_key "events", "collections"
add_foreign_key "mentions", "users", column: "mentionee_id"
add_foreign_key "mentions", "users", column: "mentioner_id"
+86 -304
View File
@@ -20,7 +20,7 @@ columns:
default_function:
collation:
comment:
- &24 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &23 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: collection_id
cast_type: &3 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3Adapter::SQLite3Integer
@@ -90,7 +90,7 @@ columns:
default_function:
collation:
comment:
- &18 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &28 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: user_id
cast_type: *3
@@ -258,7 +258,7 @@ columns:
collation:
comment:
- *6
- &19 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &18 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: key
cast_type: *7
@@ -301,44 +301,9 @@ columns:
default_function:
collation:
comment:
ai_quotas:
- *5
- *6
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: limit
cast_type: *3
sql_type_metadata: *4
'null': false
default:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: reset_at
cast_type: *1
sql_type_metadata: *2
'null': false
default:
default_function:
collation:
comment:
- *9
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: used
cast_type: *3
sql_type_metadata: *4
'null': false
default: 0
default_function:
collation:
comment:
- *18
ar_internal_metadata:
- *5
- *19
- *18
- *9
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
@@ -351,7 +316,7 @@ columns:
collation:
comment:
assignees_filters:
- &21 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &20 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: assignee_id
cast_type: *3
@@ -361,7 +326,7 @@ columns:
default_function:
collation:
comment:
- &20 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &19 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: filter_id
cast_type: *3
@@ -372,7 +337,7 @@ columns:
collation:
comment:
assigners_filters:
- &22 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &21 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: assigner_id
cast_type: *3
@@ -382,11 +347,11 @@ columns:
default_function:
collation:
comment:
- *20
- *19
assignments:
- *20
- *21
- *22
- &23 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &22 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: card_id
cast_type: *3
@@ -400,7 +365,7 @@ columns:
- *6
- *9
card_activity_spikes:
- *23
- *22
- *5
- *6
- *9
@@ -429,16 +394,16 @@ columns:
comment:
- *9
card_goldnesses:
- *23
- *22
- *5
- *6
- *9
card_not_nows:
- *23
- *22
- *5
- *6
- *9
- &25 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &24 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: user_id
cast_type: *3
@@ -449,7 +414,7 @@ columns:
collation:
comment:
cards:
- *24
- *23
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: column_id
@@ -461,7 +426,7 @@ columns:
collation:
comment:
- *5
- &26 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &25 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: creator_id
cast_type: *3
@@ -474,12 +439,12 @@ columns:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: due_on
cast_type: &38 !ruby/object:ActiveRecord::Type::Date
cast_type: &37 !ruby/object:ActiveRecord::Type::Date
precision:
scale:
limit:
timezone:
sql_type_metadata: &39 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
sql_type_metadata: &38 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
sql_type: date
type: :date
limit:
@@ -511,7 +476,7 @@ columns:
default_function:
collation:
comment:
- &37 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &36 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: title
cast_type: *7
@@ -533,15 +498,15 @@ columns:
default_function:
collation:
comment:
- *20
- *19
closures:
- *23
- *22
- *5
- *6
- *9
- *25
collection_publications:
- *24
collection_publications:
- *23
- *5
- *6
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
@@ -559,11 +524,11 @@ columns:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: all_access
cast_type: &33 !ruby/object:ActiveModel::Type::Boolean
cast_type: &32 !ruby/object:ActiveModel::Type::Boolean
precision:
scale:
limit:
sql_type_metadata: &34 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
sql_type_metadata: &33 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
sql_type: boolean
type: :boolean
limit:
@@ -575,15 +540,15 @@ columns:
collation:
comment:
- *5
- *26
- *25
- *6
- *10
- *9
collections_filters:
- *24
- *20
- *23
- *19
columns:
- *24
- *23
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: color
@@ -599,133 +564,14 @@ columns:
- *10
- *9
comments:
- *23
- *22
- *5
- *26
- *25
- *6
- *9
conversation_messages:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: client_message_id
cast_type: *7
sql_type_metadata: *8
'null': false
default:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: conversation_id
cast_type: *3
sql_type_metadata: *4
'null': false
default:
default_function:
collation:
comment:
- &31 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: cost_in_microcents
cast_type: *11
sql_type_metadata: *12
'null': true
default:
default_function:
collation:
comment:
- *5
- *6
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: input_cost_in_microcents
cast_type: *11
sql_type_metadata: *12
'null': true
default:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: input_tokens
cast_type: *11
sql_type_metadata: *12
'null': true
default:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: model_id
cast_type: *7
sql_type_metadata: *8
'null': true
default:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: output_cost_in_microcents
cast_type: *11
sql_type_metadata: *12
'null': true
default:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: output_tokens
cast_type: *11
sql_type_metadata: *12
'null': true
default:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: role
cast_type: *7
sql_type_metadata: *8
'null': false
default:
default_function:
collation:
comment:
- *9
conversations:
- *5
- *6
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: state
cast_type: *7
sql_type_metadata: *8
'null': true
default:
default_function:
collation:
comment:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: string
cast_type: *7
sql_type_metadata: *8
'null': true
default:
default_function:
collation:
comment:
- *9
- *18
creators_filters:
- *26
- *20
- *25
- *19
entropy_configurations:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
@@ -771,9 +617,9 @@ columns:
default_function:
collation:
comment:
- *24
- *23
- *5
- *26
- *25
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: eventable_id
@@ -798,11 +644,11 @@ columns:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: particulars
cast_type: &27 !ruby/object:ActiveRecord::Type::Json
cast_type: &26 !ruby/object:ActiveRecord::Type::Json
precision:
scale:
limit:
sql_type_metadata: &28 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
sql_type_metadata: &27 !ruby/object:ActiveRecord::ConnectionAdapters::SqlTypeMetadata
sql_type: json
type: :json
limit:
@@ -816,12 +662,12 @@ columns:
- *9
filters:
- *5
- *26
- *25
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: fields
cast_type: *27
sql_type_metadata: *28
cast_type: *26
sql_type_metadata: *27
'null': false
default: "{}"
default_function:
@@ -840,8 +686,8 @@ columns:
comment:
- *9
filters_tags:
- *20
- &36 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- *19
- &35 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: tag_id
cast_type: *3
@@ -929,7 +775,7 @@ columns:
collation:
comment:
- *9
- *18
- *28
notifications:
- *5
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
@@ -956,9 +802,9 @@ columns:
- *29
- *30
- *9
- *18
- *28
period_summaries:
- &35 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &34 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: content
cast_type: *15
@@ -968,17 +814,26 @@ columns:
default_function:
collation:
comment:
- *31
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: cost_in_microcents
cast_type: *11
sql_type_metadata: *12
'null': true
default:
default_function:
collation:
comment:
- *5
- *6
- *19
- *18
- *9
pins:
- *23
- *22
- *5
- *6
- *9
- *18
- *28
push_subscriptions:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
@@ -1013,7 +868,7 @@ columns:
collation:
comment:
- *9
- &32 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &31 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: user_agent
cast_type: *7
@@ -1023,7 +878,7 @@ columns:
default_function:
collation:
comment:
- *18
- *28
reactions:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
@@ -1140,7 +995,7 @@ columns:
collation:
comment:
- *9
- *18
- *28
search_results:
- *5
- *6
@@ -1159,34 +1014,34 @@ columns:
collation:
comment:
- *9
- *32
- *18
- *31
- *28
steps:
- *23
- *22
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: completed
cast_type: *33
sql_type_metadata: *34
cast_type: *32
sql_type_metadata: *33
'null': false
default: false
default_function:
collation:
comment:
- *35
- *34
- *5
- *6
- *9
taggings:
- *23
- *22
- *5
- *6
- *36
- *35
- *9
tags:
- *5
- *6
- *37
- *36
- *9
user_settings:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
@@ -1212,7 +1067,7 @@ columns:
collation:
comment:
- *9
- *18
- *28
user_weekly_summaries:
- *5
- *6
@@ -1229,21 +1084,21 @@ columns:
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: starts_at
cast_type: *38
sql_type_metadata: *39
cast_type: *37
sql_type_metadata: *38
'null': false
default:
default_function:
collation:
comment:
- *9
- *18
- *28
users:
- &41 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &40 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: active
cast_type: *33
sql_type_metadata: *34
cast_type: *32
sql_type_metadata: *33
'null': false
default: true
default_function:
@@ -1284,16 +1139,16 @@ columns:
comment:
- *9
watches:
- *23
- *22
- *5
- *6
- *9
- *18
- *28
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: watching
cast_type: *33
sql_type_metadata: *34
cast_type: *32
sql_type_metadata: *33
'null': false
default: true
default_function:
@@ -1323,7 +1178,7 @@ columns:
comment:
- *6
- *9
- &40 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
- &39 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
auto_increment:
name: webhook_id
cast_type: *3
@@ -1377,10 +1232,10 @@ columns:
collation:
comment:
- *9
- *40
- *39
webhooks:
- *41
- *24
- *40
- *23
- *5
- *6
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
@@ -1431,7 +1286,6 @@ primary_keys:
active_storage_attachments: id
active_storage_blobs: id
active_storage_variant_records: id
ai_quotas: id
ar_internal_metadata: key
assignees_filters:
assigners_filters:
@@ -1448,8 +1302,6 @@ primary_keys:
collections_filters:
columns: id
comments: id
conversation_messages: id
conversations: id
creators_filters:
entropy_configurations: id
events: id
@@ -1484,7 +1336,6 @@ data_sources:
active_storage_attachments: true
active_storage_blobs: true
active_storage_variant_records: true
ai_quotas: true
ar_internal_metadata: true
assignees_filters: true
assigners_filters: true
@@ -1501,8 +1352,6 @@ data_sources:
collections_filters: true
columns: true
comments: true
conversation_messages: true
conversations: true
creators_filters: true
entropy_configurations: true
events: true
@@ -1720,39 +1569,6 @@ indexes:
nulls_not_distinct:
comment:
valid: true
ai_quotas:
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
table: ai_quotas
name: index_ai_quotas_on_reset_at
unique: false
columns:
- reset_at
lengths: {}
orders: {}
opclasses: {}
where:
type:
using:
include:
nulls_not_distinct:
comment:
valid: true
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
table: ai_quotas
name: index_ai_quotas_on_user_id
unique: false
columns:
- user_id
lengths: {}
orders: {}
opclasses: {}
where:
type:
using:
include:
nulls_not_distinct:
comment:
valid: true
ar_internal_metadata: []
assignees_filters:
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
@@ -2204,40 +2020,6 @@ indexes:
nulls_not_distinct:
comment:
valid: true
conversation_messages:
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
table: conversation_messages
name: index_conversation_messages_on_conversation_id
unique: false
columns:
- conversation_id
lengths: {}
orders: {}
opclasses: {}
where:
type:
using:
include:
nulls_not_distinct:
comment:
valid: true
conversations:
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
table: conversations
name: index_conversations_on_user_id
unique: true
columns:
- user_id
lengths: {}
orders: {}
opclasses: {}
where:
type:
using:
include:
nulls_not_distinct:
comment:
valid: true
creators_filters:
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
table: creators_filters
@@ -3188,4 +2970,4 @@ indexes:
nulls_not_distinct:
comment:
valid: true
version: 20251025174618
version: 20251027113216