blob: b9a971387d1c8e5d33194af38d924e7dc0552265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class PostgresCreateIntegerCast < ActiveRecord::Migration
def up
execute <<-SQL
CREATE CAST (integer AS text) WITH INOUT AS IMPLICIT;
SQL
rescue ActiveRecord::StatementInvalid
end
def down
execute <<-SQL
DROP CAST (integer AS text);
SQL
rescue ActiveRecord::StatementInvalid
end
end
|