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