mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
parent
c5d667c711
commit
48135ba72c
6 changed files with 27 additions and 9 deletions
|
@ -0,0 +1,5 @@
|
|||
class ChangePricePriceCentsTypeToInteger < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :prices, :price_cents, 'integer USING CAST(price_cents AS integer)'
|
||||
end
|
||||
end
|
5
db/migrate/20170423214500_remove_price_price_currency.rb
Normal file
5
db/migrate/20170423214500_remove_price_price_currency.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class RemovePricePriceCurrency < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :prices, :price_currency, :string
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RemovePricePriceCentsDefault < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_default :prices, :price_cents, nil
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue