Commit 3dfe88ad by cuong.tran Committed by cuong.tran

Add nested models to integration test project (#200)

parent 425d12b9
module Sub1::Sub2::Sub3
class Event < ActiveRecord::Base
end
end
class Sub1::User < ActiveRecord::Base
end
......@@ -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
......
class CreateEvents < ActiveRecord::Migration
def change
create_table :events do |t|
t.string :content
t.timestamps
end
end
end
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :content
t.timestamps
end
end
end
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment