Sha256: 69a07946c25c4dab582ee89a7595f51e0277a2dc5c06d119e7f999293ebb7b19

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

class CreateTestModels < ActiveRecord::Migration
  def self.up
    create_table :test_models do |t|
      t.string :first_name
      t.string :last_name
      t.string :address
      t.boolean :some_flag
      t.string   :avatar_file_name
      t.string   :avatar_content_type
      t.integer  :avatar_file_size
      t.datetime :avatar_updated_at
      t.string   :avatar2_file_name
      t.string   :avatar2_content_type
      t.integer  :avatar2_file_size
      t.datetime :avatar2_updated_at

      t.timestamps
    end
  end

  def self.down
    drop_table :test_models
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
view_mapper-0.3.4 test/views/paperclip/expected_templates/create_test_models.rb