Sha256: 5d9f472f640539aa159e8fa3513346042fa5cf20ab281126038afdbd5d05f304

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

# Author ::   Tom Statter
# Date ::     Oct 2012
# License::   MIT
#
# Details::   Migration for paperclip specs

class AddDigitals < ActiveRecord::Migration
  
  def self.up

     create_table :digitals do |t|
      t.integer :owner_id
      t.string  :attachment_file_name
      t.string  :attachment_content_type
      t.integer :attachment_file_size
      t.timestamps
    end
    
  end

  def self.down
    drop_table :digitals
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datashift-0.11.1 spec/fixtures/db/migrate/20121009161700_add_digitals.rb
datashift-0.11.0 spec/fixtures/db/migrate/20121009161700_add_digitals.rb
datashift-0.10.2 spec/fixtures/db/migrate/20121009161700_add_digitals.rb