I created a User
model with attributes name
and email
. So to create users, I opened the rails console and used the sandbox.
rails console --sandbox user1 = User.new( name: "example" , email: example@org.com) => #
But when I do
>>user1.save
I get the following error:
1.9.3p194 :012 > user2.save
(0.3ms) SAVEPOINT active_record_1
ActiveRecord::StatementInvalid: SQLite3::SQLException: near "SAVEPOINT": syntax error: SAVEPOINT active_record_1
What could the possible error be? Some dependency issue between sqlite3 1.3.6 and activerecord 3.2.5