Skip to content

Commit

Permalink
Allow null for customers.created_manually
Browse files Browse the repository at this point in the history
Some production database don't allow null for customers.created_maually,
we want to allow it to bring the database inline with schema.rb
  • Loading branch information
rioug committed Jan 14, 2025
1 parent e2e12cc commit 600195a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CustomersCreatedManuallyRemoveNull < ActiveRecord::Migration[7.0]
def change
change_column_null :customers, :created_manually, true
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_11_13_185651) do
ActiveRecord::Schema[7.0].define(version: 2025_01_13_055412) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"
Expand Down

0 comments on commit 600195a

Please sign in to comment.