[code language=”ruby”]
class ChangePriceTypeInSales < ActiveRecord::Migration
def change
change_column :sales, :price, ‘float USING CAST(price AS float)’
end
end
[/code]
View more posts by Rakesh PD
[code language=”ruby”]
class ChangePriceTypeInSales < ActiveRecord::Migration
def change
change_column :sales, :price, ‘float USING CAST(price AS float)’
end
end
[/code]
[et_pb_section admin_label=”section”] [et_pb_row admin_label=”row”] [et_pb_column type=”4_4″][et_pb_text admin_label=”Text”][code language=”bash”] upstream mysite_app { server unix:///home/ubuntu/mysite/shared/sockets/puma.sock; } server {…
Remove menu menu false To change the name of the label in the menu: menu label:…
Using text magic Add gem to your Gemfile [code language=”ruby”] gem ‘textmagic’ [/code] [code language=”ruby”] class…
Recent Comments