Skip to content

Commit

Permalink
Apply Code Review Recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu committed Feb 5, 2024
1 parent 6908ef0 commit d009a59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -3,7 +3,6 @@
class AddStateIdToDecidimProposalsProposals < ActiveRecord::Migration[6.1]
def up
add_column :decidim_proposals_proposals, :decidim_proposals_proposal_state_id, :integer, index: true

add_foreign_key :decidim_proposals_proposals, :decidim_proposals_proposal_states, column: :decidim_proposals_proposal_state_id
end

Expand Down
Expand Up @@ -25,5 +25,7 @@ def up
end
end

def down; end
def down
raise ActiveRecord::IrreversibleMigration
end
end

0 comments on commit d009a59

Please sign in to comment.