Move DB dir
This commit is contained in:
9
config/db/migrate/20230131084956_add_photos_to_posts.rb
Normal file
9
config/db/migrate/20230131084956_add_photos_to_posts.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ROM::SQL.migration do
|
||||
change do
|
||||
alter_table :posts do
|
||||
add_column :photos, :json, default: "[]", null: false
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user