If required, you can change the column type from INT to BIGINT and vice versa in any database table:

1. Go to OnApp add dir:

cd /onapp/interface
CODE

2. Execute the rake task:

  • Switch from integer to bigint, where you need to specify the table and its column to which you want to apply the changes, e.g., [edge_statistics, id]
RAILS_ENV=production rake db:column:to_bigint[table,column]
CODE


  • Switch from integer to bigint, where you need to specify the table and its column to which you want to apply the changes, e.g., [edge_statistics, id]:
 RAILS_ENV=production rake db:column:to_integer[table,column]
CODE