bigdir/db/migrate/20140519070751_add_name_to_...

8 lines
234 B
Ruby

class AddNameToHomeworkAttach < ActiveRecord::Migration
def change
add_column :homework_attaches, :name, :string
add_column :homework_attaches, :description, :string
add_column :homework_attaches, :state, :int
end
end