Fixing issue #19 for realsies (oriented by tracking)

This commit is contained in:
2014-04-10 20:10:04 -07:00
parent 13e72fef23
commit 16c75b2d0f
9 changed files with 28 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
class AddCreatedByToContract < ActiveRecord::Migration
def change
add_column :contracts, :created_by, :integer
add_column :contracts, :created_by_id, :integer
end
end

View File

@@ -0,0 +1,5 @@
class AddOrientedByToUsers < ActiveRecord::Migration
def change
add_column :users, :oriented_by_id, :integer
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20140411022819) do
ActiveRecord::Schema.define(:version => 20140411024809) do
create_table "cards", :force => true do |t|
t.string "card_number"
@@ -42,7 +42,7 @@ ActiveRecord::Schema.define(:version => 20140411022819) do
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "cosigner"
t.integer "created_by"
t.integer "created_by_id"
end
create_table "door_logs", :force => true do |t|
@@ -252,6 +252,7 @@ ActiveRecord::Schema.define(:version => 20140411022819) do
t.boolean "email_visible"
t.boolean "phone_visible"
t.string "postal_code"
t.integer "oriented_by_id"
end
add_index "users", ["email"], :name => "index_users_on_email", :unique => true