okay, so, we have associations rocking
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user