Skip to content

Commit

Permalink
change datatype to bigint - converting to bytes in SQL can throw PG::…
Browse files Browse the repository at this point in the history
  • Loading branch information
yrudman committed Jul 11, 2017
1 parent 75a9709 commit 67ee4d6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class ChangeMemoryMbInHardwaresTableToBigint < ActiveRecord::Migration[5.0]
def up
change_column :hardwares, :memory_mb, :bigint
end

def down
change_column :hardwares, :memory_mb, :integer
end
end

0 comments on commit 67ee4d6

Please sign in to comment.