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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:46:32+00:00 2026-05-31T19:46:32+00:00

I am attempting to create a table in rails.. I need to be able

  • 0

I am attempting to create a table in rails.. I need to be able to set the id’s to data that’s coming in because I have three (or more) sources, and their ID’s must match.

I’m setting the ID’s manually, based on data I get in.

When I create the table with a migration, I get the message
“will create implicit sequence”
I don’t want this to happen… How do I avoid it?

I know why it’s always there.. but sometimes we need customization no? 🙂

  • 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-31T19:46:34+00:00Added an answer on May 31, 2026 at 7:46 pm

    ActiveRecord make the :primary_key column auto_increment by default. Maybe you have to create the primary key by yourself if you don’t want it auto_increment.

    create_table :table_name, :id => false do |t|
      t.integer :id
      t.timestamps
    end
    ActiveRecord::Base.connection.execute("ALTER TABLE table_name ADD PRIMARY KEY (id)")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to create a MySQL snippet that will analyse a table and
The situation is, that i need to create table in grid view looking like
I am attempting to create a view in SQL Server 2000 that splits data
I have 10 transact SQL scripts that each create a table and fill it
I am attempting to create a template that will utilize data from an Access
I'm attempting to create a custom calendar control that inherits from ASP.Net's built in
I am attempting to create a small application to collect data received from an
I am attempting to create a web page that will allow a user to
I'm attempting to create divs in an table using jQuery. The table represents a
I'm attempting to create a SQLite db and populate it with data initially. When

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.