Sha256: 57b036bcbfb219784a135eb20521441453b25e4457154ef36347539249ce014a

Contents?: true

Size: 542 Bytes

Versions: 10

Compression:

Stored size: 542 Bytes

Contents

# encoding: utf-8

require 'activerecord'
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

10 entries across 10 versions & 3 rubygems

Version Path
durran-carrierwave-0.3.2.3 features/support/activerecord.rb
jnicklas-carrierwave-0.3.3 features/support/activerecord.rb
carrierwave-0.4.2 features/support/activerecord.rb
carrierwave-0.4.1 features/support/activerecord.rb
carrierwave-0.4.0 features/support/activerecord.rb
carrierwave-0.3.5.2 features/support/activerecord.rb
carrierwave-0.3.5.1 features/support/activerecord.rb
carrierwave-0.3.5 features/support/activerecord.rb
carrierwave-0.3.4 features/support/activerecord.rb
carrierwave-0.3.3 features/support/activerecord.rb