Skip to content

Instantly share code, notes, and snippets.

@fivetwentysix
Created November 29, 2010 05:54
Show Gist options
  • Save fivetwentysix/719630 to your computer and use it in GitHub Desktop.
Save fivetwentysix/719630 to your computer and use it in GitHub Desktop.
class CreateCarouselsTable < ActiveRecord::Migration
def self.up
create_table(:carousels) do |t|
t.string :alternate_text
t.string :destination_url
t.string :image_file_name
t.string :image_content_type
t.integer :image_file_size
t.datetime :image_updated_at
end
end
def self.down
drop_table(:carousels)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment