Skip to content

Commit 4864889

Browse files
committed
Modify test to match expected output
1 parent 8c383ae commit 4864889

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/generators/github/ds/templates/migration.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ class CreateKeyValuesTable < ActiveRecord::Migration<%= migration_version %>
1212
end
1313

1414
def self.down
15-
drop_table <%= table_name %>
15+
drop_table <%= table_name %>
1616
end
1717
end

test/generators/github/store/active_record_generator_test.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ def self.up
2929
3030
add_index :#{table_name}, :key, :unique => true
3131
add_index :#{table_name}, :expires_at
32-
33-
change_column :#{table_name}, :id, "bigint(20) NOT NULL AUTO_INCREMENT"
3432
end
3533
3634
def self.down
37-
drop_table :#{table_name}
35+
drop_table :#{table_name}
3836
end
3937
end
4038
EOM

0 commit comments

Comments
 (0)