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