Class: CreateSales
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSales
- Defined in:
- lib/forge/db/migrate/20130405172034_create_sales.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
15 16 17 |
# File 'lib/forge/db/migrate/20130405172034_create_sales.rb', line 15 def down drop_table :sales end |
#up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/forge/db/migrate/20130405172034_create_sales.rb', line 2 def up create_table "sales" do |t| t.string "title" t.text "description" t.datetime "start" t.datetime "end" t.float "value" t.string "sale_type" t.datetime "created_at" t.datetime "updated_at" end end |