I want to do some testing...
If there is an array, array = [a, b, c, d], I want to save it in my database (SQLite 3) and call the elements when a user types 'array' in the input area.
I'm using cloud9 for testing! In 'migrates' folder, there is a file that has this code.
class CreateFans < ActiveRecord::Migration
def change
create_table :fans do |t|
t.string :content
t.timestamps null: false
end
end
end
I know I have to use this page for defining variable names of database data. but where should I put on my 'array' data?
The conclusion is...
I want to know how to save and recall an array in my database!