Created
May 19, 2022 16:18
-
-
Save malachaifrazier/f5f03f6e8faf34e4485080e7805db2ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Command ["bin/rails db:prepare"] failed == | |
➜ railsdevs.com git:(main) ✗ git status | |
On branch main | |
Your branch is up to date with 'origin/main'. | |
Changes not staged for commit: | |
(use "git add <file>..." to update what will be committed) | |
(use "git restore <file>..." to discard changes in working directory) | |
modified: db/migrate/20211028230858_create_active_storage_tables.active_storage.rb | |
modified: db/migrate/20211128095707_create_businesses.rb | |
modified: db/migrate/20211214000001_create_conversations_and_messages.rb | |
modified: db/migrate/20211214000002_add_bio_to_businesses.rb | |
modified: db/migrate/20211215034919_add_blocked_at_to_conversations.rb | |
modified: db/migrate/20220108053330_add_developer_notifications_to_business.rb | |
modified: db/migrate/20220214204932_create_analytics_events.rb | |
no changes added to commit (use "git add" and/or "git commit -a") | |
➜ railsdevs.com git:(main) ✗ git diff | |
➜ railsdevs.com git:(main) ✗ git diff --color > foo.txt | |
➜ railsdevs.com git:(main) ✗ git diff --color | |
diff --git a/db/migrate/20211028230858_create_active_storage_tables.active_storage.rb b/db/migrate/20211028230858_create_active_storage_tables.active_storage.rb | |
index 7ca39a2..bc8c2d9 100644 | |
--- a/db/migrate/20211028230858_create_active_storage_tables.active_storage.rb | |
+++ b/db/migrate/20211028230858_create_active_storage_tables.active_storage.rb | |
@@ -4,7 +4,7 @@ class CreateActiveStorageTables < ActiveRecord::Migration[5.2] | |
# Use Active Record's configured type for primary and foreign keys | |
primary_key_type, foreign_key_type = primary_and_foreign_key_types | |
- create_table :active_storage_blobs, id: primary_key_type do |t| | |
+ create_table :active_storage_blobs, id: primary_key_type, if_not_exists: true do |t| | |
t.string :key, null: false | |
t.string :filename, null: false | |
t.string :content_type | |
@@ -22,7 +22,7 @@ class CreateActiveStorageTables < ActiveRecord::Migration[5.2] | |
t.index [:key], unique: true | |
end | |
- create_table :active_storage_attachments, id: primary_key_type do |t| | |
+ create_table :active_storage_attachments, id: primary_key_type, if_not_exists: true do |t| | |
t.string :name, null: false | |
t.references :record, null: false, polymorphic: true, index: false, type: foreign_key_type | |
t.references :blob, null: false, type: foreign_key_type | |
@@ -37,7 +37,7 @@ class CreateActiveStorageTables < ActiveRecord::Migration[5.2] | |
t.foreign_key :active_storage_blobs, column: :blob_id | |
end | |
- create_table :active_storage_variant_records, id: primary_key_type do |t| | |
+ create_table :active_storage_variant_records, id: primary_key_type, if_not_exists: true do |t| | |
t.belongs_to :blob, null: false, index: false, type: foreign_key_type | |
t.string :variation_digest, null: false | |
diff --git a/db/migrate/20211128095707_create_businesses.rb b/db/migrate/20211128095707_create_businesses.rb | |
index 4cc68e4..73ebd1d 100644 | |
--- a/db/migrate/20211128095707_create_businesses.rb | |
+++ b/db/migrate/20211128095707_create_businesses.rb | |
@@ -1,6 +1,6 @@ | |
class CreateBusinesses < ActiveRecord::Migration[7.0] | |
def change | |
- create_table :businesses do |t| | |
+ create_table :businesses, if_not_exists: true do |t| | |
t.belongs_to :user | |
t.string :name, null: false | |
t.string :company, null: false | |
diff --git a/db/migrate/20211214000001_create_conversations_and_messages.rb b/db/migrate/20211214000001_create_conversations_and_messages.rb | |
index 9ca0988..85c7fa1 100644 | |
--- a/db/migrate/20211214000001_create_conversations_and_messages.rb | |
: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment