I’m trying to load data into my mysql table using the following:
============ load_codes_data.rb ============
class LoadCodesData < ActiveRecord::Migration
directory = File.join(File.dirname(“MY_DIR_NAME”), “data”)
and here’s the yaml file:
=============== codes.yml ===================
description: Friends or Family
description: Search Engine
Here’s my question.
Codes table has the three fields you see in the yaml file and a unique
id field that gets populated automatically and gets assigned a random
non-sequential numbers. I would like for it to get sequential ids
assigned. I’ve searched for a while, but haven’t come across a
solution… Can anyone help?