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