Skip to content

Commit

Permalink
- more model setup code
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Sep 6, 2012
1 parent 485a875 commit 43be164
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions server/prototypes/active_record/model.rb
@@ -1,18 +1,5 @@
require_relative '../model_setup'

# Set up model backend.
#
ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
:database => ":memory:"
)
ActiveRecord::Schema.define(:version => 0) do
create_table :models, :force => true do |t|
t.string :name
t.string :surname
end
end

# Fake ActiveRecord model.
#
class Model < ActiveRecord::Base
Expand Down

0 comments on commit 43be164

Please sign in to comment.