okay, so, we have associations rocking

This commit is contained in:
Ken Johnson
2013-05-24 19:15:36 -04:00
parent 0d841124f5
commit 471c5851c7
7 changed files with 51 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ class CreateUsers < ActiveRecord::Migration
t.boolean :admin
t.string :first_name
t.string :last_name
t.string :user_id
t.integer :user_id
t.timestamps
end
@@ -0,0 +1,12 @@
class CreateRetirements < ActiveRecord::Migration
def change
create_table :retirements do |t|
t.string :total
t.string :employee_contrib
t.string :employer_contrib
t.integer :user_id
t.timestamps
end
end
end
+11 -2
View File
@@ -11,7 +11,16 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20130424220355) do
ActiveRecord::Schema.define(:version => 20130524222129) do
create_table "retirements", :force => true do |t|
t.string "total"
t.string "employee_contrib"
t.string "employer_contrib"
t.integer "user_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "users", :force => true do |t|
t.string "email"
@@ -19,7 +28,7 @@ ActiveRecord::Schema.define(:version => 20130424220355) do
t.boolean "admin"
t.string "first_name"
t.string "last_name"
t.string "user_id"
t.integer "user_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end