Sha256: 4f3c4d823f77d663e7d39f91512766c9466219d1d682235c99424608279051f8

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

class AddUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :name
    end

    create_table :emails do |t|
      t.string :subject
      t.string :message
    end

    create_table :db_files do |t|
      t.string :owner_type
      t.string :owner_id
      t.string :name
      t.integer :size
      t.string :content_type
      t.binary :data, limit: 10.megabyte
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
file_upload-0.0.3 test/dummy/db/migrate/20130820025256_add_users.rb
file_upload-0.0.2 test/dummy/db/migrate/20130820025256_add_users.rb
file_upload-0.0.1 test/dummy/db/migrate/20130820025256_add_users.rb