Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
3dfe88ad
Commit
3dfe88ad
authored
Aug 05, 2014
by
cuong.tran
Committed by
cuong.tran
Aug 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nested models to integration test project (#200)
parent
425d12b9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
3 deletions
+36
-3
event.rb
...ntegration/rails_4.1.1/app/models/sub1/sub2/sub3/event.rb
+4
-0
user.rb
spec/integration/rails_4.1.1/app/models/sub1/user.rb
+2
-0
20140526224112_create_tasks.rb
...ion/rails_4.1.1/db/migrate/20140526224112_create_tasks.rb
+1
-1
20140705000000_create_events.rb
...on/rails_4.1.1/db/migrate/20140705000000_create_events.rb
+8
-0
20140705000010_create_users.rb
...ion/rails_4.1.1/db/migrate/20140705000010_create_users.rb
+8
-0
schema.rb
spec/integration/rails_4.1.1/db/schema.rb
+13
-2
No files found.
spec/integration/rails_4.1.1/app/models/sub1/sub2/sub3/event.rb
0 → 100644
View file @
3dfe88ad
module
Sub1::Sub2::Sub3
class
Event
<
ActiveRecord
::
Base
end
end
spec/integration/rails_4.1.1/app/models/sub1/user.rb
0 → 100644
View file @
3dfe88ad
class
Sub1
::
User
<
ActiveRecord
::
Base
end
spec/integration/rails_4.1.1/db/migrate/20140526224112_create_tasks.rb
View file @
3dfe88ad
...
@@ -2,7 +2,7 @@ class CreateTasks < ActiveRecord::Migration
...
@@ -2,7 +2,7 @@ class CreateTasks < ActiveRecord::Migration
def
change
def
change
create_table
:tasks
do
|
t
|
create_table
:tasks
do
|
t
|
t
.
string
:content
t
.
string
:content
t
.
column
:status
,
default:
0
t
.
column
:status
,
:default
=>
0
t
.
timestamps
t
.
timestamps
end
end
end
end
...
...
spec/integration/rails_4.1.1/db/migrate/20140705000000_create_events.rb
0 → 100644
View file @
3dfe88ad
class
CreateEvents
<
ActiveRecord
::
Migration
def
change
create_table
:events
do
|
t
|
t
.
string
:content
t
.
timestamps
end
end
end
spec/integration/rails_4.1.1/db/migrate/20140705000010_create_users.rb
0 → 100644
View file @
3dfe88ad
class
CreateUsers
<
ActiveRecord
::
Migration
def
change
create_table
:users
do
|
t
|
t
.
string
:content
t
.
timestamps
end
end
end
spec/integration/rails_4.1.1/db/schema.rb
View file @
3dfe88ad
...
@@ -11,11 +11,22 @@
...
@@ -11,11 +11,22 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# 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
|
create_table
"tasks"
,
force:
true
do
|
t
|
t
.
string
"content"
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
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment