Skip to content

Commit 46f00a5

Browse files
committed
Fix ASG rename migration
* Sequel could no longer tell what DB is was for, for some reason
1 parent f9c219e commit 46f00a5

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
Sequel.migration do
2-
change do
3-
alter_table :asg_timestamps do
4-
rename_column '{:name=>:id}', :id
5-
end
2+
up do
3+
run <<-SQL
4+
ALTER TABLE asg_timestamps RENAME COLUMN `{:name=>:id}` to `id`;
5+
SQL
6+
end
7+
8+
down do
9+
run <<-SQL
10+
ALTER TABLE asg_timestamps RENAME COLUMN `id` to `{:name=>:id}`;
11+
SQL
612
end
713
end

0 commit comments

Comments
 (0)