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:45:30 -04:00 committed by Anil Kumar Maurya
parent 542eeda841
commit 91c446581c

View file

@ -1,4 +1,4 @@
class AASMCreate<%= table_name.camelize %> < ActiveRecord::Migration class AASMCreate<%= table_name.camelize %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
def change def change
create_table(:<%= table_name %>) do |t| create_table(:<%= table_name %>) do |t|
t.string :<%= column_name %> t.string :<%= column_name %>