Rename highlights -> summary
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class RenamePeriodHighlightsToPeriodSummaries < ActiveRecord::Migration[8.2]
|
||||
def change
|
||||
rename_table :period_highlights, :period_summaries
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class RenameUserWeeklyHighlightsToUserWeeklySummaries < ActiveRecord::Migration[8.2]
|
||||
def change
|
||||
rename_table :user_weekly_highlights, :user_weekly_summaries
|
||||
rename_column :user_weekly_summaries, :period_highlights_id, :period_summary_id
|
||||
end
|
||||
end
|
||||
Generated
+9
-9
@@ -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_16_153034) do
|
||||
ActiveRecord::Schema[8.2].define(version: 2025_10_25_174618) do
|
||||
create_table "accesses", force: :cascade do |t|
|
||||
t.datetime "accessed_at"
|
||||
t.integer "collection_id", null: false
|
||||
@@ -325,7 +325,7 @@ ActiveRecord::Schema[8.2].define(version: 2025_10_16_153034) do
|
||||
t.index ["user_id"], name: "index_notifications_on_user_id"
|
||||
end
|
||||
|
||||
create_table "period_highlights", force: :cascade do |t|
|
||||
create_table "period_summaries", force: :cascade do |t|
|
||||
t.text "content", null: false
|
||||
t.bigint "cost_in_microcents"
|
||||
t.datetime "created_at", null: false
|
||||
@@ -433,15 +433,15 @@ ActiveRecord::Schema[8.2].define(version: 2025_10_16_153034) do
|
||||
t.index ["user_id"], name: "index_user_settings_on_user_id"
|
||||
end
|
||||
|
||||
create_table "user_weekly_highlights", force: :cascade do |t|
|
||||
create_table "user_weekly_summaries", force: :cascade do |t|
|
||||
t.datetime "created_at", null: false
|
||||
t.integer "period_highlights_id", null: false
|
||||
t.integer "period_summary_id", null: false
|
||||
t.date "starts_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "user_id", null: false
|
||||
t.index ["period_highlights_id"], name: "index_user_weekly_highlights_on_period_highlights_id"
|
||||
t.index ["user_id", "starts_at"], name: "index_user_weekly_highlights_on_user_id_and_starts_at", unique: true
|
||||
t.index ["user_id"], name: "index_user_weekly_highlights_on_user_id"
|
||||
t.index ["period_summary_id"], name: "index_user_weekly_summaries_on_period_summary_id"
|
||||
t.index ["user_id", "starts_at"], name: "index_user_weekly_summaries_on_user_id_and_starts_at", unique: true
|
||||
t.index ["user_id"], name: "index_user_weekly_summaries_on_user_id"
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
@@ -530,8 +530,8 @@ ActiveRecord::Schema[8.2].define(version: 2025_10_16_153034) do
|
||||
add_foreign_key "taggings", "cards"
|
||||
add_foreign_key "taggings", "tags"
|
||||
add_foreign_key "user_settings", "users"
|
||||
add_foreign_key "user_weekly_highlights", "period_highlights", column: "period_highlights_id"
|
||||
add_foreign_key "user_weekly_highlights", "users"
|
||||
add_foreign_key "user_weekly_summaries", "period_summaries"
|
||||
add_foreign_key "user_weekly_summaries", "users"
|
||||
add_foreign_key "watches", "cards"
|
||||
add_foreign_key "watches", "users"
|
||||
add_foreign_key "webhook_delinquency_trackers", "webhooks"
|
||||
|
||||
+18
-18
@@ -957,7 +957,7 @@ columns:
|
||||
- *30
|
||||
- *9
|
||||
- *18
|
||||
period_highlights:
|
||||
period_summaries:
|
||||
- &35 !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: content
|
||||
@@ -1213,12 +1213,12 @@ columns:
|
||||
comment:
|
||||
- *9
|
||||
- *18
|
||||
user_weekly_highlights:
|
||||
user_weekly_summaries:
|
||||
- *5
|
||||
- *6
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::SQLite3::Column
|
||||
auto_increment:
|
||||
name: period_highlights_id
|
||||
name: period_summary_id
|
||||
cast_type: *3
|
||||
sql_type_metadata: *4
|
||||
'null': false
|
||||
@@ -1458,7 +1458,7 @@ primary_keys:
|
||||
mentions: id
|
||||
notification_bundles: id
|
||||
notifications: id
|
||||
period_highlights: id
|
||||
period_summaries: id
|
||||
pins: id
|
||||
push_subscriptions: id
|
||||
reactions: id
|
||||
@@ -1471,7 +1471,7 @@ primary_keys:
|
||||
taggings: id
|
||||
tags: id
|
||||
user_settings: id
|
||||
user_weekly_highlights: id
|
||||
user_weekly_summaries: id
|
||||
users: id
|
||||
watches: id
|
||||
webhook_delinquency_trackers: id
|
||||
@@ -1511,7 +1511,7 @@ data_sources:
|
||||
mentions: true
|
||||
notification_bundles: true
|
||||
notifications: true
|
||||
period_highlights: true
|
||||
period_summaries: true
|
||||
pins: true
|
||||
push_subscriptions: true
|
||||
reactions: true
|
||||
@@ -1524,7 +1524,7 @@ data_sources:
|
||||
taggings: true
|
||||
tags: true
|
||||
user_settings: true
|
||||
user_weekly_highlights: true
|
||||
user_weekly_summaries: true
|
||||
users: true
|
||||
watches: true
|
||||
webhook_delinquency_trackers: true
|
||||
@@ -2615,9 +2615,9 @@ indexes:
|
||||
nulls_not_distinct:
|
||||
comment:
|
||||
valid: true
|
||||
period_highlights:
|
||||
period_summaries:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
|
||||
table: period_highlights
|
||||
table: period_summaries
|
||||
name: index_period_highlights_on_key_and_starts_at_and_duration
|
||||
unique: true
|
||||
columns:
|
||||
@@ -2989,13 +2989,13 @@ indexes:
|
||||
nulls_not_distinct:
|
||||
comment:
|
||||
valid: true
|
||||
user_weekly_highlights:
|
||||
user_weekly_summaries:
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
|
||||
table: user_weekly_highlights
|
||||
name: index_user_weekly_highlights_on_period_highlights_id
|
||||
table: user_weekly_summaries
|
||||
name: index_user_weekly_summaries_on_period_summary_id
|
||||
unique: false
|
||||
columns:
|
||||
- period_highlights_id
|
||||
- period_summary_id
|
||||
lengths: {}
|
||||
orders: {}
|
||||
opclasses: {}
|
||||
@@ -3007,8 +3007,8 @@ indexes:
|
||||
comment:
|
||||
valid: true
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
|
||||
table: user_weekly_highlights
|
||||
name: index_user_weekly_highlights_on_user_id
|
||||
table: user_weekly_summaries
|
||||
name: index_user_weekly_summaries_on_user_id
|
||||
unique: false
|
||||
columns:
|
||||
- user_id
|
||||
@@ -3023,8 +3023,8 @@ indexes:
|
||||
comment:
|
||||
valid: true
|
||||
- !ruby/object:ActiveRecord::ConnectionAdapters::IndexDefinition
|
||||
table: user_weekly_highlights
|
||||
name: index_user_weekly_highlights_on_user_id_and_starts_at
|
||||
table: user_weekly_summaries
|
||||
name: index_user_weekly_summaries_on_user_id_and_starts_at
|
||||
unique: true
|
||||
columns:
|
||||
- user_id
|
||||
@@ -3188,4 +3188,4 @@ indexes:
|
||||
nulls_not_distinct:
|
||||
comment:
|
||||
valid: true
|
||||
version: 20251016153034
|
||||
version: 20251025174618
|
||||
|
||||
Reference in New Issue
Block a user