Skip to content

Commit

Permalink
Use table_for in scaffold (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcsmith authored Nov 20, 2019
1 parent a8280c6 commit 8b52c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/gen/resource/browser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Gen::Resource::Browser < LuckyCli::Task
end

private def rollback_contents : String
"drop :#{pluralized_resource.underscore}"
"drop table_for(#{resource_name})"
end

private def validate! : Void
Expand Down

0 comments on commit 8b52c57

Please sign in to comment.