Sha256: c9015b719c72a379f25a01b072e78ccb965a62cdd7346c98c69893036b87b441
Contents?: true
Size: 480 Bytes
Versions: 5
Compression:
Stored size: 480 Bytes
Contents
class CreateAttachments < ActiveRecord::Migration def self.up create_table :attachments, :force => true do |t| t.string :attached_file_name, t.string :attached_content_type t.integer :attached_file_size t.references :attacher, :polymorphic => true t.string :attacher_name t.integer :position, :default => 1 t.timestamps end end def self.down drop_table :attachments end end
Version data entries
5 entries across 5 versions & 1 rubygems