Created
April 18, 2016 16:02
-
-
Save dkarter/22f91bab78403616da5872b9247b8366 to your computer and use it in GitHub Desktop.
Rails SQL Migration Projections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"db/migrations/*.rb": { | |
"type": "migration", | |
"template": [ | |
"class {camelcase} < ActiveRecord::Migration", | |
" def up", | |
" execute <<-SQL", | |
" SQL", | |
" end", | |
"", | |
" def down", | |
" execute <<-SQL", | |
" SQL", | |
" end", | |
"end" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment