mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
parent
8e90769366
commit
2ff05c4b00
3 changed files with 11 additions and 2 deletions
|
@ -0,0 +1,7 @@
|
|||
class ChangePricelistDurationTypeToInterval < ActiveRecord::Migration
|
||||
def change
|
||||
execute <<-SQL
|
||||
ALTER TABLE pricelists ALTER COLUMN duration TYPE interval USING (trim(duration)::interval)
|
||||
SQL
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue