Fixing issue #19 for realsies (oriented by tracking)
This commit is contained in:
@@ -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
|
||||
|
||||
5
db/migrate/20140411024809_add_oriented_by_to_users.rb
Normal file
5
db/migrate/20140411024809_add_oriented_by_to_users.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddOrientedByToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :oriented_by_id, :integer
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user