20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/generators/queue_classic/install_generator.rb', line 20
def create_migration_file
if self.class.migration_exists?('db/migrate', 'add_queue_classic').nil?
migration_template 'add_queue_classic.rb', 'db/migrate/add_queue_classic.rb'
end
if self.class.migration_exists?('db/migrate', 'update_queue_classic_3_0_0').nil?
migration_template 'update_queue_classic_3_0_0.rb', 'db/migrate/update_queue_classic_3_0_0.rb'
end
if self.class.migration_exists?('db/migrate', 'update_queue_classic_3_0_2').nil?
migration_template 'update_queue_classic_3_0_2.rb', 'db/migrate/update_queue_classic_3_0_2.rb'
end
if self.class.migration_exists?('db/migrate', 'update_queue_classic_3_1_0').nil?
migration_template 'update_queue_classic_3_1_0.rb', 'db/migrate/update_queue_classic_3_1_0.rb'
end
if self.class.migration_exists?('db/migrate', 'update_queue_classic_4_0_0').nil?
migration_template 'update_queue_classic_4_0_0.rb', 'db/migrate/update_queue_classic_4_0_0.rb'
end
end
|