Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The **Link Entity** has 7 attributes. `id`, `title`, `url`, `slug`, `user_id`, `created_at` and `updated_at`. However some of these attributes rely on gems and other Entities therefore we only need to establish the independent attributes for the time being. Which are `id`, `title`, `url`, `created_at` and `updated_at`.
- <pre><code>
- $ <b>rails generate scaffold link title:string url:string</b>
- $ <b>rake db:migrate</b>
- == 20180308052501 CreateLinks: migrating ======================================
- -- create_table(:links)
- -> 0.0010s
- == 20180308052501 CreateLinks: migrated (0.0011s) =============================
- </pre></code>
Add Comment
Please, Sign In to add comment