Class: CreateSexItUpImages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSexItUpImages
- Defined in:
- lib/generators/sex_it_up/templates/sex_it_up_migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
18 19 20 |
# File 'lib/generators/sex_it_up/templates/sex_it_up_migration.rb', line 18 def self.down drop_table :sex_it_up_images end |
.up ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/generators/sex_it_up/templates/sex_it_up_migration.rb', line 4 def self.up #load(File.dirname(__FILE__) + '/../../../spec/schema.rb') create_table "sex_it_up_images" do |t| t.string :image_search_term t.string :image_original_url t.string :image_url t.string :image_file_name t.string :image_content_type t.integer :image_file_size t.datetime :image_updated_at end end |