Add neighborhood apps/projects

This commit is contained in:
Max Wofford
2025-05-16 10:33:07 -04:00
parent b2d1cbc511
commit 9f790eb24d
5 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
class CreateNeighborhoodApps < ActiveRecord::Migration[8.0]
def change
create_table :neighborhood_apps do |t|
t.string :airtable_id, null: false
t.index :airtable_id, unique: true
t.jsonb :airtable_fields
t.timestamps
end
end
end

View File

@@ -0,0 +1,11 @@
class CreateNeighborhoodProjects < ActiveRecord::Migration[8.0]
def change
create_table :neighborhood_projects do |t|
t.string :airtable_id, null: false
t.index :airtable_id, unique: true
t.jsonb :airtable_fields
t.timestamps
end
end
end

18
db/schema.rb generated
View File

@@ -12,7 +12,7 @@
create_schema "pganalyze"
ActiveRecord::Schema[8.0].define(version: 2025_05_16_140014) do
ActiveRecord::Schema[8.0].define(version: 2025_05_16_142043) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
enable_extension "pg_stat_statements"
@@ -264,6 +264,14 @@ ActiveRecord::Schema[8.0].define(version: 2025_05_16_140014) do
t.index ["user_id"], name: "index_mailing_addresses_on_user_id"
end
create_table "neighborhood_apps", force: :cascade do |t|
t.string "airtable_id", null: false
t.jsonb "airtable_fields"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["airtable_id"], name: "index_neighborhood_apps_on_airtable_id", unique: true
end
create_table "neighborhood_posts", force: :cascade do |t|
t.string "airtable_id", null: false
t.jsonb "airtable_fields"
@@ -272,6 +280,14 @@ ActiveRecord::Schema[8.0].define(version: 2025_05_16_140014) do
t.index ["airtable_id"], name: "index_neighborhood_posts_on_airtable_id", unique: true
end
create_table "neighborhood_projects", force: :cascade do |t|
t.string "airtable_id", null: false
t.jsonb "airtable_fields"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["airtable_id"], name: "index_neighborhood_projects_on_airtable_id", unique: true
end
create_table "physical_mails", force: :cascade do |t|
t.bigint "user_id", null: false
t.integer "mission_type", null: false