Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Moussas-MacBook-Pro:theBlog moussasarr$ bin/rake db:migrate RAILS_ENV=development
  2. == 20141031151735 SorceryCore: migrating ======================================
  3. -- create_table(:authors)
  4. rake aborted!
  5. StandardError: An error has occurred, this and all later migrations canceled:
  6.  
  7. SQLite3::SQLException: table "authors" already exists: CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255) NOT NULL, "email" varchar(255) NOT NULL, "crypted_password" varchar(255) NOT NULL, "salt" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime) /Users/moussasarr/.rvm/gems/ruby-2.0.0-p576@railstutorial_rails_4_0/gems/sqlite3-1.3.8/lib/sqlite3/database.rb:91:in `initialize'
  8.  
  9. class SorceryCore < ActiveRecord::Migration
  10. def change
  11. create_table :authors do |t|
  12. t.string :username, :null => false
  13. t.string :email, :null => false
  14. t.string :crypted_password, :null => false
  15. t.string :salt, :null => false
  16. t.timestamps
  17. end
  18. add_index :authors, :email, unique: true
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement