Skip to content

Instantly share code, notes, and snippets.

@nicolasblanco
Created February 17, 2009 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasblanco/65740 to your computer and use it in GitHub Desktop.
Save nicolasblanco/65740 to your computer and use it in GitHub Desktop.
class CreateAccessories < ActiveRecord::Migration
def self.up
create_table :accessories do |t|
t.string :title
t.string :manufacturer_id
t.string :manufacturer
t.string :sku
t.float :price
t.float :former_price
t.float :shipping_cost
t.integer :category_id
t.text :description
t.string :url
t.text :warranty
t.boolean :available
t.boolean :discount
t.boolean :new
t.timestamps
end
end
def self.down
drop_table :accessories
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment