i am getting an erro while migrating database.
Error is:
PG::UndefinedColumn: ERROR: column roles.deleted_at does not exist
LINE 1: SELECT "roles".* FROM "roles" WHERE ("roles"."deleted_at" I... ^ : SELECT "roles".* FROM "roles" WHERE ("roles"."deleted_at" IS NULL)
Here is my a part of schema.rb
create_table "roles", :force => true do |t|
t.string "name"
t.string "title"
t.integer "resource_id"
t.string "resource_type"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "deleted_at"
end
I tried to make rails generate migration AddDeletedAtToRoles deleted_at
But it did not help
Aucun commentaire:
Enregistrer un commentaire