Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate a new Rails app with an existing mysql Database
    primarykey
    data
    text
    <p>I have an existing mysql database set up, and would like to set up a new rails up simply so my client can view and edit the records in the db. How can I set up a scaffold linked to my existing db. The db name is "Products" and has just one table called "pins". </p> <p>Pins tables:</p> <pre><code>+----------------+---------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------------+---------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | type | text | YES | | NULL | | | title | text | YES | | NULL | | | description | text | YES | | NULL | | | price | text | YES | | NULL | | | img_src | text | YES | | NULL | | | source | text | YES | | NULL | | | sr_id | text | YES | | NULL | | | category | varchar(1000) | YES | | NULL | | | pinner | text | YES | | NULL | | | pinner_id | text | YES | | NULL | | | board_cat | text | YES | | NULL | | | board_name | text | YES | | NULL | | | board_url | text | YES | | NULL | | | like_count | bigint(20) | YES | | NULL | | | repins_count | bigint(20) | YES | | NULL | | | comments_count | bigint(20) | YES | | NULL | | | pinned_count | bigint(20) | YES | | NULL | | | actions_count | bigint(20) | YES | | NULL | | | error_404 | bigint(20) | YES | | NULL | | | pin_at | text | YES | | NULL | | | social_rank | bigint(20) | YES | | NULL | | | created_at | text | NO | | NULL | | | updated_at | text | NO | | NULL | | | isgiftable | int(11) | YES | | NULL | | | sr_id_int | bigint(20) | YES | | NULL | | +----------------+---------------+------+-----+---------+----------------+ </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload