Sha256: 899dc3747ec885fc7e37baff58e71d07d4c697334b91f5e4a72319eec94a048f

Contents?: true

Size: 590 Bytes

Versions: 10

Compression:

Stored size: 590 Bytes

Contents

require 'active_record'
require 'action_controller/railtie'
require 'action_view/railtie'

ActiveRecord::Base.configurations = {'test' => {:adapter => 'sqlite3', :database => ':memory:'}}
ActiveRecord::Base.establish_connection('test')

app = Class.new(Rails::Application)
app.config.active_support.deprecation = :log
app.initialize!

app.routes.draw do
  resources :users
end

class User < ActiveRecord::Base
  has_many :statuses
end

class CreateTestTables < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :name
      t.integer :age
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kashiwamochi-0.5.0 spec/fake_app.rb
kashiwamochi-0.4.3 spec/fake_app.rb
kashiwamochi-0.4.2 spec/fake_app.rb
kashiwamochi-0.4.1 spec/fake_app.rb
kashiwamochi-0.4.0 spec/fake_app.rb
kashiwamochi-0.3.0 spec/fake_app.rb
kashiwamochi-0.2.3 spec/fake_app.rb
kashiwamochi-0.2.2 spec/fake_app.rb
kashiwamochi-0.2.1 spec/fake_app.rb
kashiwamochi-0.2.0 spec/fake_app.rb