473,287 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

help with: database error - parse error, unexpected $, expecting kEND

database error - parse error, unexpected $, expecting kEND

AddUserAuthorisationToUsers.rb migration file

1. class AddUserAuthorisationToUsers < ActiveRecord::Migration
2. def self.up
3. drop_table :users
4.
5. create_table :users, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8' do |t|
6. t.column :first_name, :string
7. t.column :last_name, :string
8. t.column :login, :string, :limit => '80', :null => false
9. t.column :salted_password, :string, :limit => '40', :null => false
10. t.column :email, :string, :null => false
11. t.column :salt, :string, :limit => '40', :null => false
12. t.column :verified, :integer, :default => '0'
13. t.column :role, :string, :limit => '40', :default => ''
14. t.column :security_token, :string, :limit => '40', :default => ''
15. t.column :token_expiry, :datetime, :default => ''
16. t.column :deleted, :integer, :default => '0'
17. t.column :delete_after, :datetime, :default => ''
18. end
19. end
20.
21. def self.down
22. drop_table :users
23. end


keeps displaying this error:
1. rake aborted!
2. ./db/migrate//012_add_user_authorisation_to_users.rb:24: parse error, unexpected $, expecting kEND

Any ideas?
Apr 8 '07 #1
1 6805
improvcornartist
303 Expert 100+
The 'unexpected $, expecting kEND' error usually means you are missing an 'end' somewhere. In this case, the class is never closed with 'end'. Just add 'end' to the end of the class and that should take care of it.
Jul 8 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Filth | last post by:
Hi this is probably very easy to sort but I want to do the following:- header( "Location: subscribe_form.php?name='.$_GET.'&email='.$_GET.'"); but this pulls up the error:- Parse error:...
1
by: Jan Pieter Kunst | last post by:
Dear people, How is it possible that this gives a parse error: if (! empty($this->zoekopdracht->get_gezochte_vraagnummers())) $vraagnummers_bijhouden = TRUE; -> Parse error: parse error,...
6
by: Ehartwig | last post by:
I recently created a script for user verification, solved my emailing issues, and then re-created the script in order to work well with the new PHP 5 that I installed on my server. After...
9
by: Jerim79 | last post by:
I am no PHP programmer. At my current job I made it known that I was no PHP programmer during the interview. Still they have given me a script to write with the understanding that it will take me a...
5
by: Anna MZ | last post by:
I am new to php and have written the following mysql code to enter the details of a new user in the admin subdomain of my website: $sql = "INSERT INTO 'users' ('userid', 'username', 'upassword')...
3
by: deerhide | last post by:
Hi, I was updating my website, well trying to... and I somehow messed it up. I didnt build it, I bought it so I don't know alot about programming. I receive these errors when going to...
3
paulrajj
by: paulrajj | last post by:
hi to all, i am getting syntax error on my code.. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in D:\xampp\htdocs\Dummy\paulraj\matrim\exam.php on line 62 ...
14
riverdale1567
by: riverdale1567 | last post by:
Hi I am a newbie trying to get some of my first code working, yada yada yada. I have a drop down box which chooses a state then takes the post data to 'processform2.php' to use that to pull up...
5
by: jeddiki | last post by:
Hi, I am using the following regex to check for valid email addresses, but I am getting errors. if (preg_match('\^+@+\.{2,4}$\',$regex)){ echo "VALID"; } else { echo "INVALID";
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.