how to create an SQL table in ruby
snippet in sql

how to create an SQL table in ruby

user4878

def self.create_table
    sql = <<-SQL
      CREATE TABLE IF NOT EXISTS students (
        name TEXT,
        grade TEXT
      )
    SQL
    DB[:conn].execute(sql)
  end