ddd

Ruby code posted
created at 28 Jul 14:32

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
class ChangeProductsPrice < ActiveRecord::Migration[5.0]
  def up
    change_table :products do |t|
      t.change :price, :string
    end
  end
 
  def down
    change_table :products do |t|
      t.change :price, :integer
    end
  end
end
253 Bytes in 4 ms with coderay