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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:16:15+00:00 2026-05-31T06:16:15+00:00

I am new to rails development. I have a simple problem but Im stumped

  • 0

I am new to rails development. I have a simple problem but Im stumped and cant find help on google.

I have a sqlite3 database outside of my Rails app. I need to somehow get that data into my app.

What are the options?

Can I
1) somehow import the sqlite3 database and its contents into my rails app? If so what adjustments need to be made, since I know that rails inserts columns into the db: “id”, “created at”, “updated at”

2) If I cannot import the sqlite3 into my rails app, can I read the contents from it and enter the data into my module and then my my db?

Which if these methods is possible and which is suggested?

Could someone please point me to some resources on this topic. What exactly should I be looking for on google for this topic? any keywords?

Also does anyone know of good rails forums that are active?

Thanks,

  • 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-31T06:16:17+00:00Added an answer on May 31, 2026 at 6:16 am

    You can specify a separate connection to that database in your database.yml. Then create a model for a table in that DB. In that model use establish_connection to tell ActiveRecord to get data for that model out of the other DB.

    Look at some examples for to_model. This will show you how to transition the data into your new DB.

    As far as rails inserting id, created_at and updated_at, this only happens when you use a migration to create a new table. It will not attempt to change any tables from your old DB without you telling it to. In fact, those fields are also optional on new tables.

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

Sidebar

Related Questions

I'm new to Rails development and I'm starting with MongoDB also. I have been
I am very new to rails development. I am creating a simple backend for
I am very, very new to Rails development. I have read the arguments against
I have been using mysql in a new rails application, but now I wanted
I'm new to Rails development and I have a question about handling an unknown
I'm new to Rails development. I have two models, Decision and Choice. Every decision
I'm relatively new to Rails development and I'm having a minor associations problem. I'd
I am new in Rails and web development... I have created a User model,
I'm new to Rails development, and I'm trying to figure out how to use
At my new job I am doing rails development and I am on Ubuntu

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.