1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

add current Rails version to migration

This commit is contained in:
Pablo Acuna 2017-05-27 11:46:14 -04:00 committed by Anil Kumar Maurya
parent 91c446581c
commit 1ef5c17c41

View file

@ -1,4 +1,4 @@
class Add<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration class Add<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
def change def change
add_column :<%= table_name %>, :<%= column_name %>, :string add_column :<%= table_name %>, :<%= column_name %>, :string
end end