Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7218939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:33:09+00:00 2026-05-28T21:33:09+00:00

I wrote down on a simple text file the script I have to run

  • 0

I wrote down on a simple text file the script I have to run to generate my models for my Rails 3.2.1 app:

rails generate model Champion name:string title:string story:string smallpicture:string largepicture:string spotlight:string

rails generate model Item code:int name:string description:string cost:string

rails generate model RecommendedItems mapname:string item1:int item2:int item3:int item4:int item5:int item6:int champion:references

rails generate model GoodAgainst reason:string champion:references

rails generate model BadAgainst reason:string champion:references

rails generate model Spell name:string description:string effect:string cost:string range:string champion:references

rails generate model Tip tiptext:string champion:references

rails generate model ChampionStat name:string value:string modifier:string champion:references

rails generate model User summonername:string email:string password:string confirmpassword:string location:string canvoteonfavoritechampion:boolean

rails generate model FavoriteStream url:string user:references

rails generate model ChampionRanking startweek:datetime endofweek:datetime champion:references

rails generate model CustomBuilds item1:int item2:int item3:int item4:int item5:int item6:int champion:references

Now, I realize that I can run generate scaffold, but I figured I would run model first and then add the scaffolding on a need only basis. Is this possible?

Is this the way you create a Ruby on Rails application? I drew out the database on paper and created the foreign key relationship and use the foo:references notation to note the relationships.

Is this correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T21:33:10+00:00Added an answer on May 28, 2026 at 9:33 pm

    Assuming that the syntax of your commands is correct, there’s nothing objectively wrong with what you are doing, but I don’t think it’s the way Rails was meant to be used.

    What your doing is very not agile. In agile programming, you focus on delivering working software early and often. So you would just make the minimal number of tables and columns to get the first few features working. Then once you have done that and shown it to your customers/users, you would decide what feature to add next and add the tables and columns you need for that. Eventually you would have a complete app.

    I think this approach has some benefits because you might learn some things about database design during the early phases of the project that help improve your decisions in the later part of the project.

    I recommend reading Agile Web Development with Rails if you want to see an example of how an app would be developed this way.

    Another good practice is test-driven development. The idea is you should only write code to fix broken tests. It looks like you aren’t doing that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that displays information(simple text, but not in a txt box,
I have a program that generates a plain text file. The structure (layout) is
I have wrote this simple plugin which smooth scrolls the browser window and adds
I recently wrote some javascript code that filled a drop down list based on
I have three tables. This query will write down the right answer (x-lines for
Goal: To implement a jQuery plugin for my rails app (or write one myself,
I have a verbatim environment containing computer output as text. This text is sematically
I have a simple square I'm drawing in 3D space using Direct3D 11 and
I'm trying to write a VBScript (.vbs) script that uses the WScript.Shell Run() method,
I have a small ruby application I wrote that's an anagram searcher. It's for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.