Skip to content

Commit

Permalink
Merge pull request #209 from TreinaDev/fix/default-edited-at-em-posts
Browse files Browse the repository at this point in the history
Remoção de default value
  • Loading branch information
GyodaiDDA authored Feb 14, 2024
2 parents 804c7d8 + ee92738 commit 01ec599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20240126133553_add_edited_at_to_posts.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AddEditedAtToPosts < ActiveRecord::Migration[7.1]
def change
add_column :posts, :edited_at, :datetime, default: Time.zone.now
add_column :posts, :edited_at, :datetime
end
end
4 changes: 2 additions & 2 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01ec599

Please sign in to comment.