Aggiunge annunci in-app/sito, contatti e migliora UI copertina sul portale.
Include admin/API/banner nativi, form contatti e reset copertina standard con layout edit più ampio. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
class CreateAppAnnouncements < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :app_announcements, id: :uuid do |t|
|
||||
t.string :kind, null: false, default: "info"
|
||||
t.string :severity, null: false, default: "info"
|
||||
t.string :status, null: false, default: "draft"
|
||||
t.boolean :show_on_app, null: false, default: true
|
||||
t.boolean :show_on_web_public, null: false, default: false
|
||||
t.boolean :show_on_web_private, null: false, default: false
|
||||
t.string :title, null: false
|
||||
t.text :body, null: false
|
||||
t.string :action_url
|
||||
t.string :action_label
|
||||
t.boolean :dismissible, null: false, default: true
|
||||
t.datetime :starts_at
|
||||
t.datetime :ends_at
|
||||
t.references :created_by_admin, foreign_key: { to_table: :admin_accounts }, type: :uuid
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :app_announcements, :status
|
||||
add_index :app_announcements, %i[status starts_at ends_at]
|
||||
end
|
||||
end
|
||||
Generated
+24
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.2].define(version: 2026_08_18_220000) do
|
||||
ActiveRecord::Schema[7.2].define(version: 2026_08_20_140000) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
@@ -51,6 +51,28 @@ ActiveRecord::Schema[7.2].define(version: 2026_08_18_220000) do
|
||||
t.index ["username"], name: "index_admin_accounts_on_username", unique: true
|
||||
end
|
||||
|
||||
create_table "app_announcements", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
t.string "kind", default: "info", null: false
|
||||
t.string "severity", default: "info", null: false
|
||||
t.string "status", default: "draft", null: false
|
||||
t.boolean "show_on_app", default: true, null: false
|
||||
t.boolean "show_on_web_public", default: false, null: false
|
||||
t.boolean "show_on_web_private", default: false, null: false
|
||||
t.string "title", null: false
|
||||
t.text "body", null: false
|
||||
t.string "action_url"
|
||||
t.string "action_label"
|
||||
t.boolean "dismissible", default: true, null: false
|
||||
t.datetime "starts_at"
|
||||
t.datetime "ends_at"
|
||||
t.uuid "created_by_admin_id"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["created_by_admin_id"], name: "index_app_announcements_on_created_by_admin_id"
|
||||
t.index ["status", "starts_at", "ends_at"], name: "index_app_announcements_on_status_and_starts_at_and_ends_at"
|
||||
t.index ["status"], name: "index_app_announcements_on_status"
|
||||
end
|
||||
|
||||
create_table "billing_club_quotes", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
t.uuid "club_id", null: false
|
||||
t.string "plan_slug", null: false
|
||||
@@ -471,6 +493,7 @@ ActiveRecord::Schema[7.2].define(version: 2026_08_18_220000) 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 "app_announcements", "admin_accounts", column: "created_by_admin_id"
|
||||
add_foreign_key "billing_club_quotes", "admin_accounts", column: "created_by_admin_id"
|
||||
add_foreign_key "billing_club_quotes", "clubs"
|
||||
add_foreign_key "billing_invoices", "billing_payments"
|
||||
|
||||
Reference in New Issue
Block a user