Sha256: 572d07a63143f878a051660b6bd46ff80fd6967771b1f7c925784042a97b17bc

Contents?: true

Size: 543 Bytes

Versions: 17

Compression:

Stored size: 543 Bytes

Contents

# encoding: utf-8

require 'active_record'
require 'carrierwave/mount'
require 'carrierwave/orm/activerecord'

# change this if sqlite is unavailable
dbconfig = {
  :adapter => 'sqlite3',
  :database => ':memory:'
}

ActiveRecord::Base.establish_connection(dbconfig)
ActiveRecord::Migration.verbose = false

class TestMigration < ActiveRecord::Migration
  def self.up
    create_table :users, :force => true do |t|
      t.column :avatar, :string
    end
  end

  def self.down
    drop_table :users
  end
end

Before do
  TestMigration.up
end

Version data entries

17 entries across 17 versions & 5 rubygems

Version Path
thorsson_carrierwave-0.4.12 features/support/activerecord.rb
thorsson_carrierwave-0.4.11 features/support/activerecord.rb
thorsson_carrierwave-0.4.10 features/support/activerecord.rb
thorsson_carrierwave-0.4.9 features/support/activerecord.rb
thorsson_carrierwave-0.4.8 features/support/activerecord.rb
thorsson_carrierwave-0.4.6 features/support/activerecord.rb
thorsson_carrierwave-0.4.5 features/support/activerecord.rb
samlown-carrierwave-0.4.5 features/support/activerecord.rb
dsturnbull-carrierwave-0.4.9 features/support/activerecord.rb
dsturnbull-carrierwave-0.4.8 features/support/activerecord.rb
dsturnbull-carrierwave-0.4.7 features/support/activerecord.rb
carrierwave-0.4.5 features/support/activerecord.rb
dsturnbull-carrierwave-0.4.6 features/support/activerecord.rb
dsturnbull-carrierwave-0.4.5 features/support/activerecord.rb
carrierwave-0.4.4 features/support/activerecord.rb
durran-carrierwave-0.4.3 features/support/activerecord.rb
carrierwave-0.4.3 features/support/activerecord.rb