Question: ```
I'm trying to: 

```

1. **for loop**' trough **'colorCard'** and find the **'div class="card'** element with the value: **'color: red'** .
2. Then add class of **'red'** on this **'div class="card"'** element

Basicaly my **for loop** function is not working and has no error messages in console.

//MY HTML

```
<body>
    <div class="container" id="all-cards">
    </div>
</body>

```

//MY JAVASCRIPT

```
let **colorCard** = [
    {  color: 'color: none'},
    {  color: 'color: none'},
    {  color: 'color: none'},
    {  color: 'color: none'},
    {  color: 'color: red'},
    {  color: 'color: none'},
    {  color: 'color: none'},
    {  color: 'color: none'}
    ];

const allCards = document.querySelector('#all-cards');

let card = colorCard.map(function(cardData){
    return '**<div class="card">**'  +
    '<span>' + cardData.color  + '<span>' +
            '</div>';
});

allCards.innerHTML = card.join('\n');

```

//UP TO HERE MY CODE IS WORKING

//function below is not working.

```
// Loop trough the 'let colorCard' finds the value of "color: red" then add CSS class of "red"

for( i = 0; i < card.length; i++){
    if(card[i] === "color: red"){
        console.log("Found it") 
        //Also I want to add a class on this card object
     }
}

```

Answer: 
Figure out which app and migration originally created the table. For example, if the model that created the table is in an app called `users` in the initial migration #0001, you can run this command to dump the SQL that created the table:

```sql
$ python manage.py sqlmigrate users 0001
BEGIN;
--
-- Create model User
--
CREATE TABLE "users_user" ("id" serial NOT NULL PRIMARY KEY, "password" varchar(128) NOT NULL, "last_login" timestamp with time zone NOT NULL, "is_superuser" boolean NOT NULL, "username" varchar(30) NOT NULL UNIQUE, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NULL, "email" varchar(75) NOT NULL, "is_staff" boolean NOT NULL, "is_active" boolean NOT NULL, "date_joined" timestamp with time zone NOT NULL, "subscriber_code" varchar(255) NOT NULL);
CREATE INDEX "users_user_username_06e46fe6_like" ON "users_user" ("username" varchar_pattern_ops);
COMMIT;

```

After that, you can open a database shell in SQLite, and run the SQL via copy and paste:

```
python manage.py dbshell

```

Good luck with your restore!
Delete migration files and re-run `python manage.py makemigrations`