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 8636771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:18:20+00:00 2026-06-12T10:18:20+00:00

After finishing Michael Hartl’s tutorial on Rails, my first pet project is building a

  • 0

After finishing Michael Hartl’s tutorial on Rails, my first pet project is building a call tracking app using the Twilio API. The basic idea is the following –

There are 4 plans users can sign up for, which limit the number of phone numbers they have, and the number of minutes they can use

Each user, once registered gets their own subaccount from Twilio

Each user can buy phone numbers, limited to their plan

Each user can track what’s happening on their phone numbers.

Right now, I’ve build a basic authorization system, and brainstormed a potential data structure. I have huge loop holes in understanding though, so an experienced programmer’s eyes would be greatly appreciated. I.e is there a better data structure, does what I outline below even make sense?

—So, here’s the data structure

Table : Plans

max_phone_numbers: integer 
max_minutes: integer
has_many: users 

Table : Users

name:string
email:string
password_digest:string
remember_token:string [For log in system]
Twilio_SubAccountSid: string
Twilio_SubAccountAuthToken: string
Plan id : integer [to connect to plan] 
stripe_token : string [for charging]
belongs_to: plan
has_many: phone_numbers

Table : Phone Numbers

belongs_to users
phone_number:string
user_id: integer
has_many: data_points

Table : Twilio Data

belongs_to phone_numbers
phone_number_id: string
[All of Twilio's call tracking data..i.e duration of call, location etc.]

Okay, that’s pretty much my interpration of how it might work. Please tear it apart!

  • 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-06-12T10:18:21+00:00Added an answer on June 12, 2026 at 10:18 am

    In terms of the data structure, I think this seems to be it. What I didn’t realize though is that there’s a lot more controllers involved. For example, searching and buying in Twilio involved two CREATE actions, so I had to make another controller. I imagine there would be another controller that would be responsible for routing calls.

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

Sidebar

Related Questions

after finishing Michael Hart's tutorial on rails, I'm giving making a simple app of
When I was first started teaching myself programming, after finishing a tutorial I would
im using a phone call listener in my activity but after finishing my activity
I want to display a success msg after finishing an Ajax call. I tried
After following the RoR getting started tutorial, I added another model as: $ rails
After finishing coding for my app, I started to get into the optimization part.
I need to develop an HTML5 mobile business application using PhoneGap. After finishing my
hello all its my first application using Zend Framework i have followed tutorial it
I've followed this tutorial to upgrade to mysql 5.5. After finishing all the steps
I want to finish my app calling the first activity with Intent.FLAG_ACTIVITY_CLEAR_TOP and finishing

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.