mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
272 B
Ruby
12 lines
272 B
Ruby
# Phase 21 — Rails migration benign control.
|
|
# class AddIndex < ActiveRecord::Migration[7.0]
|
|
|
|
class AddIndex
|
|
def up
|
|
add_column :users, :name, :string
|
|
end
|
|
|
|
def add_column(table, name, type)
|
|
puts "MIGRATION_ADD_COLUMN: #{table}.#{name} :: #{type}"
|
|
end
|
|
end
|