Tabelul de schimbare a șinelor

Exemple de cod

2
0

editați tabelul coloanei ruby pe șine

change_column :table, :column_name, :type, :whatever_here
1
0

cum se creează un tabel SQL în ruby

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

În alte limbi

Această pagină este în alte limbi

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................