mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Add neighborhood apps/projects
This commit is contained in:
11
db/migrate/20250516142026_create_neighborhood_apps.rb
Normal file
11
db/migrate/20250516142026_create_neighborhood_apps.rb
Normal 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
|
||||
11
db/migrate/20250516142043_create_neighborhood_projects.rb
Normal file
11
db/migrate/20250516142043_create_neighborhood_projects.rb
Normal 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
18
db/schema.rb
generated
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user