Add web app model, service to fetch metadata
This commit is contained in:
11
db/migrate/20231019125135_create_app_catalog_web_apps.rb
Normal file
11
db/migrate/20231019125135_create_app_catalog_web_apps.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateAppCatalogWebApps < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :app_catalog_web_apps do |t|
|
||||
t.string :url
|
||||
t.string :name
|
||||
t.text :metadata
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/schema.rb
10
db/schema.rb
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_09_06_073324) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_10_19_125135) do
|
||||
create_table "active_storage_attachments", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "record_type", null: false
|
||||
@@ -39,6 +39,14 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_06_073324) do
|
||||
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
|
||||
end
|
||||
|
||||
create_table "app_catalog_web_apps", force: :cascade do |t|
|
||||
t.string "url"
|
||||
t.string "name"
|
||||
t.text "metadata"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "donations", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
t.integer "amount_sats"
|
||||
|
||||
Reference in New Issue
Block a user