Skip to content

Instantly share code, notes, and snippets.

@Fernan2
Created January 17, 2017 19:23
Show Gist options
  • Save Fernan2/36fc3f6a1cc587507a599a6d3dd3e877 to your computer and use it in GitHub Desktop.
Save Fernan2/36fc3f6a1cc587507a599a6d3dd3e877 to your computer and use it in GitHub Desktop.
Enumerados en Rails y Postgres 2
class CreatePrestamos < ActiveRecord::Migration
def change
create_table :prestamos do |t|
...
t.column :finalidad, :finalidad_prestamo
...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment