mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Add neighborhood airtable post records
This commit is contained in:
11
db/migrate/20250516140014_create_neighborhood_posts.rb
Normal file
11
db/migrate/20250516140014_create_neighborhood_posts.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateNeighborhoodPosts < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :neighborhood_posts do |t|
|
||||
t.string :airtable_id, null: false
|
||||
t.index :airtable_id, unique: true
|
||||
t.jsonb :airtable_fields
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/schema.rb
generated
10
db/schema.rb
generated
@@ -10,9 +10,9 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_05_14_212714) do
|
||||
create_schema "pganalyze"
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_05_16_140014) 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_14_212714) do
|
||||
t.index ["user_id"], name: "index_mailing_addresses_on_user_id"
|
||||
end
|
||||
|
||||
create_table "neighborhood_posts", 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_posts_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