Skip to content

Commit

Permalink
Fix resource migration
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcsmith committed Sep 9, 2019
1 parent f2de09c commit 31848d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/gen/resource/browser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class Gen::Resource::Browser < LuckyCli::Task
private def migrate_contents : String
String.build do |string|
string << "create table_for(#{resource_name}) do\n"
string << " primary_key id : Int64"
string << " add_timestamps"
string << " primary_key id : Int64\n"
string << " add_timestamps\n"
columns.each do |column|
string << " add #{column.name} : #{column.type}\n"
end
Expand Down

0 comments on commit 31848d9

Please sign in to comment.