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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:07:34+00:00 2026-05-14T15:07:34+00:00

I am trying to get my rails application running on my web server, but

  • 0

I am trying to get my rails application running on my web server, but when I run the rake db:migrate I get the following error:

r

oot@oak [/home/macandco/rails_apps/survey_manager]# rake db:migrate
(in /home/macandco/rails_apps/survey_manager)
==  Baseapp: migrating ========================================================
-- create_table(:settings, {:force=>true})
   -> 0.0072s
-- create_table(:users)
   -> 0.0072s
-- add_index(:users, :login, {:unique=>true})
   -> 0.0097s
-- create_table(:profiles)
   -> 0.0084s
-- create_table(:open_id_authentication_associations, {:force=>true})
   -> 0.0067s
-- create_table(:open_id_authentication_nonces, {:force=>true})
   -> 0.0064s
-- create_table(:roles)
   -> 0.0052s
-- create_table(:roles_users, {:id=>false})
   -> 0.0060s
rake aborted!
An error has occurred, all later migrations canceled:

555 5.5.2 Syntax error. g9sm2526951gvc.8

Has anyone come across this before?

Thanks,

Danny

Main Migration file

c

lass Baseapp < ActiveRecord::Migration
  def self.up

    # Create Settings Table
    create_table :settings, :force => true do |t|
      t.string :label
      t.string :identifier
      t.text   :description
      t.string :field_type, :default => 'string'
      t.text   :value

      t.timestamps
    end

    # Create Users Table
    create_table :users do |t|
      t.string :login, :limit => 40
      t.string :identity_url      
      t.string :name, :limit => 100, :default => '', :null => true
      t.string :email, :limit => 100
      t.string :mobile
      t.string :signaturenotes
      t.string :crypted_password, :limit => 40
      t.string :salt, :limit => 40
      t.string :remember_token, :limit => 40
      t.string :activation_code, :limit => 40
      t.string :state, :null => :false, :default => 'passive'      
      t.datetime :remember_token_expires_at
      t.string :password_reset_code, :default => nil
      t.datetime :activated_at
      t.datetime :deleted_at
      t.timestamps
    end

    add_index :users, :login, :unique => true

    # Create Profile Table
    create_table :profiles do |t|
      t.references :user

      t.string :real_name
      t.string :location
      t.string :website
      t.string :mobile

      t.timestamps
    end

    # Create OpenID Tables
    create_table :open_id_authentication_associations, :force => true do |t|
      t.integer :issued, :lifetime
      t.string :handle, :assoc_type
      t.binary :server_url, :secret
    end

    create_table :open_id_authentication_nonces, :force => true do |t|
      t.integer :timestamp, :null => false
      t.string :server_url, :null => true
      t.string :salt, :null => false
    end

    create_table :roles do |t|
      t.column :name, :string
    end

    # generate the join table
    create_table :roles_users, :id => false do |t|
      t.column :role_id, :integer
      t.column :user_id, :integer
    end

    # Create admin role and user
    admin_role = Role.create(:name => 'admin')

    user = User.create do |u|
      u.login = 'admin'
      u.password = u.password_confirmation = 'XXXXXXXXX'
      u.email = 'danny@XXXXXXX.co.uk'
    end

    user.register!
    user.activate!

    user.roles << admin_role
  end

  def self.down
    # Drop all BaseApp
    drop_table :settings
    drop_table :users
    drop_table :profiles
    drop_table :open_id_authentication_associations
    drop_table :open_id_authentication_nonces
    drop_table :roles
    drop_table :roles_users
  end
end
  • 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-14T15:07:34+00:00Added an answer on May 14, 2026 at 3:07 pm

    The 555 5.5.2 Syntax error is from the email being sent after creating the user. Looks like you still have email sending issues.

    On a side note… you shouldn’t need to send emails during migrations.

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

Sidebar

Related Questions

Why do I get following error when trying to start a ruby on rails
I have a simple rails 2.3.4 application I am trying to get running with
am running apache(2.2.11) as frontend server to mongrel and using rails application trying to
I'm trying to get tags working in my rails application and want to use
Trying to get an ASP application deployed; it worked for a while but then
I am trying to Run (F6) a Rails application from NetBeans 6.8 and when
i'm trying to get working an old rails 2.1 application configured with mongrel cluster.
I am trying to get the hostname of the machine which a rails application
I am trying to deploy my rails application for the first time. Server is
I am trying to get dynamic select menu's working in my Rails application. I

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.