Skip to content

Instantly share code, notes, and snippets.

View kprakobkit's full-sized avatar

Peter Prakobkit kprakobkit

View GitHub Profile
@kprakobkit
kprakobkit / gist:1e9e8995e386f3205436
Last active August 29, 2015 14:07
InternationalizeName
require_relative '../config'
class InternationalizeName < ActiveRecord::Migration
def up
# HINT: checkout ActiveRecord::Migration.create_table
add_column :students, :name, :string
add_column :students, :address, :string
Student.all.each do |student|
first_name = student.first_name