Skip to content

Commit

Permalink
dev: add association IDs for rails 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Oct 2, 2011
1 parent 68cb4ea commit d85e787
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/support/ar_classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

module Connections
def self.extended(host)

host.connection.execute <<-eosql
CREATE TABLE #{host.table_name} (
#{host.primary_key} integer PRIMARY KEY AUTOINCREMENT
#{host.primary_key} integer PRIMARY KEY AUTOINCREMENT,
associated_model_id integer,
mockable_model_id integer,
nonexistent_model_id integer
)
eosql
end
Expand Down

0 comments on commit d85e787

Please sign in to comment.