Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateCompras < ActiveRecord::Migration
- def self.up
- create_table :compras do |t|
- t.integer :usuario_id, :null => false
- t.datetime :fecha
- t.decimal :total, :precision => 12, :scale => 2
- t.timestamps
- end
- end
- def self.down
- drop_table :compras
- end
- end
Add Comment
Please, Sign In to add comment