Sha256: 0be1315c686515a673251e88d1a4c74c2f30970df52dc236d239ccae6d0c686f

Contents?: true

Size: 715 Bytes

Versions: 4

Compression:

Stored size: 715 Bytes

Contents

require File.expand_path('../../rails_app/config/environment', __FILE__)
require 'rails/test_help'

ActiveRecord::Migration.verbose = false
ActiveRecord::Base.logger = Logger.new(nil)

ActiveRecord::Schema.define(:version => 1) do
  [:users, :admins, :accounts].each do |table|
    create_table table do |t|
      t.authenticatable :null => table == :admins

      if table != :admin
        t.string :username
        t.confirmable
        t.recoverable
        t.rememberable
        t.trackable
        t.lockable
        t.token_authenticatable
      end

      t.timestamps
    end
  end
end

class ActiveSupport::TestCase
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-1.1.pre4 test/orm/active_record.rb
devise-1.1.pre3 test/orm/active_record.rb
devise-1.1.pre2 test/orm/active_record.rb
devise-1.1.pre test/orm/active_record.rb