Initial commit
This commit is contained in:
9
db/migrate/20200117160600_add_uuid_to_order.rb
Normal file
9
db/migrate/20200117160600_add_uuid_to_order.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class AddUUIDToOrder < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :orders, :uuid, :binary, limit: 16, index: {unique: true}, after: :id
|
||||
|
||||
%w[created_at updated_at].each do |ts|
|
||||
change_column :orders, ts, :datetime, limit: 3
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user