spec/spec_helper.rb in activeform-rails-0.0.3 vs spec/spec_helper.rb in activeform-rails-0.0.4
- old
+ new
@@ -6,10 +6,10 @@
:adapter => "sqlite3",
:database => ':memory:'
)
['CREATE TABLE categories(id INTEGER PRIMARY KEY, title, user_id)',
- 'CREATE TABLE users(id INTEGER PRIMARY KEY, name)'].each do |sql|
+ 'CREATE TABLE users(id INTEGER PRIMARY KEY, name, firstname)'].each do |sql|
ActiveRecord::Base.connection.execute sql
end
class User < ActiveRecord::Base
has_many :categories