Skip to content

Instantly share code, notes, and snippets.

View obelich's full-sized avatar
:octocat:
Aprendiendo Dart + Flutter

Oscar Miguel Amezcua Estrella obelich

:octocat:
Aprendiendo Dart + Flutter
View GitHub Profile
@obelich
obelich / rb
Created November 15, 2017 19:42
add_column :$Tabla$, :$Campo$, :string
@obelich
obelich / rb
Created November 15, 2017 19:43
, default: "$Default$"
@obelich
obelich / rb
Created November 15, 2017 19:43
drop_table :$NombreTabla$
@obelich
obelich / rb
Created November 15, 2017 19:43
create_table :$TablaPlural$ do |t|
t.timestamps null: false
end
@obelich
obelich / rb
Created November 15, 2017 19:44
, null: false
@obelich
obelich / rb
Created November 15, 2017 19:44
remove_column :$Tabla$, :$Campo$, :$Tipo$
@obelich
obelich / rb
Last active November 15, 2017 19:55
t.decimal :$campo$, precision: 7, scale: 2, default: 0.00
@obelich
obelich / rb
Created November 15, 2017 19:56
t.integer :$Campo$
@obelich
obelich / rb
Created November 15, 2017 19:57
t.references :$Tabla$, foreign_key: true, index: true
@obelich
obelich / rb
Created November 15, 2017 19:58
t.string :$Campo$