แก้ไขคอลัมน์โต๊ะรูบี้บนลู่นอกทาง
change_column :table, :column_name, :type, :whatever_here
วิธีที่จะสร้างภาษา sql โต๊ะในรูบี้
def self.create_table
sql = <<-SQL
CREATE TABLE IF NOT EXISTS IF NOT EXISTS students (
name TEXT,
grade TEXT
)
SQL
DB[:conn].execute(sql)
end