diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130613173246_add_created_by_id_to_user.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20130613173246_add_created_by_id_to_user.rb b/db/migrate/20130613173246_add_created_by_id_to_user.rb new file mode 100644 index 00000000000..615e96eb156 --- /dev/null +++ b/db/migrate/20130613173246_add_created_by_id_to_user.rb @@ -0,0 +1,5 @@ +class AddCreatedByIdToUser < ActiveRecord::Migration + def change + add_column :users, :created_by_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index ce8c6d2ab7a..bec32c1d52a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130613165816) do +ActiveRecord::Schema.define(:version => 20130613173246) do create_table "deploy_keys_projects", :force => true do |t| t.integer "deploy_key_id", :null => false @@ -293,6 +293,7 @@ ActiveRecord::Schema.define(:version => 20130613165816) do t.integer "color_scheme_id", :default => 1, :null => false t.integer "notification_level", :default => 1, :null => false t.datetime "password_expires_at" + t.integer "created_by_id" end add_index "users", ["admin"], :name => "index_users_on_admin" |