Sha256: 175ccfd50cc2707ccea1e698671d225ed4bfe35b28c29ba8f18390e7933dc29b

Contents?: true

Size: 505 Bytes

Versions: 28

Compression:

Stored size: 505 Bytes

Contents

class CreateAvatarsForRails<%= file_name.camelize %> < ActiveRecord::Migration
  def self.up    
  #Tables
    create_table "avatars", :force => true do |t|
      t.integer  "<%= file_name %>_id" 
      t.string   "logo_file_name"
      t.string   "logo_content_type"
      t.integer  "logo_file_size"
      t.datetime "logo_updated_at"
      t.boolean  "active", :default => true
    end
    
    add_index "avatars", "<%= file_name %>_id"
    
  end
  
  def self.down
    drop_table :avatars
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
avatars_for_rails-1.0.0 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.9 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.8 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.7 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.6 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.5 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.4 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.3 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.2 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.1 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.2.0 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.1.6 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.1.5 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.1.4 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.1.3 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.1.2 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.1.1 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.1.0 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.0.10 lib/generators/avatars_for_rails/templates/migration.rb
avatars_for_rails-0.0.9 lib/generators/avatars_for_rails/templates/migration.rb