Skip to content

Commit

Permalink
Add nested models to integration test project (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong-now authored and ctran committed Aug 5, 2014
1 parent 425d12b commit 3dfe88a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 3 deletions.
@@ -0,0 +1,4 @@
module Sub1::Sub2::Sub3
class Event < ActiveRecord::Base
end
end
2 changes: 2 additions & 0 deletions spec/integration/rails_4.1.1/app/models/sub1/user.rb
@@ -0,0 +1,2 @@
class Sub1::User < ActiveRecord::Base
end
Expand Up @@ -2,7 +2,7 @@ class CreateTasks < ActiveRecord::Migration
def change
create_table :tasks do |t|
t.string :content
t.column :status, default: 0
t.column :status, :default => 0
t.timestamps
end
end
Expand Down
@@ -0,0 +1,8 @@
class CreateEvents < ActiveRecord::Migration
def change
create_table :events do |t|
t.string :content
t.timestamps
end
end
end
@@ -0,0 +1,8 @@
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :content
t.timestamps
end
end
end
15 changes: 13 additions & 2 deletions spec/integration/rails_4.1.1/db/schema.rb
Expand Up @@ -11,11 +11,22 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20140526224112) do
ActiveRecord::Schema.define(version: 20140705000010) do

create_table "events", force: true do |t|
t.string "content"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "tasks", force: true do |t|
t.string "content"
t.integer "status"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "users", force: true do |t|
t.string "content"
t.datetime "created_at"
t.datetime "updated_at"
end
Expand Down

0 comments on commit 3dfe88a

Please sign in to comment.