Answers for "CREATE TABLE Vereninging( id INT NOT NULL AUTO_INCREMENT, naam VARCHAR(30), oprichtingsjaar INT NOT NULL CHECK (oprichtingsjaar > 2015), primary key(id) );"

SQL
0

SQLite3::SQLException: table "categories" already exists: CREATE TABLE "categories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL

class DropCategoriesTable < ActiveRecord::Migration
     def up
       drop_table :categories
     end

     def down
       raise ActiveRecord::IrreversibleMigration
     end
end
Posted by: Guest on November-15-2020
0

SQLite3::SQLException: table "categories" already exists: CREATE TABLE "categories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL

rake db:drop
rake db:create
rake db:migrate
Posted by: Guest on November-15-2020

Code answers related to "CREATE TABLE Vereninging( id INT NOT NULL AUTO_INCREMENT, naam VARCHAR(30), oprichtingsjaar INT NOT NULL CHECK (oprichtingsjaar > 2015), primary key(id) );"

Code answers related to "SQL"

Browse Popular Code Answers by Language