Adding contracts
This commit is contained in:
16
db/migrate/20140227095847_create_contracts.rb
Normal file
16
db/migrate/20140227095847_create_contracts.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreateContracts < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :contracts do |t|
|
||||
t.integer :user_id
|
||||
t.datetime :first_name
|
||||
t.datetime :last_name
|
||||
t.datetime :signed_at
|
||||
t.string :document_file_name
|
||||
t.string :document_content_type
|
||||
t.integer :document_file_size
|
||||
t.datetime :document_updated_at
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
58
db/schema.rb
58
db/schema.rb
@@ -11,7 +11,34 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20140223060554) do
|
||||
ActiveRecord::Schema.define(:version => 20140227095847) do
|
||||
|
||||
create_table "admins", :force => true do |t|
|
||||
t.string "email", :default => "", :null => false
|
||||
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
||||
t.string "password_salt", :default => "", :null => false
|
||||
t.string "confirmation_token"
|
||||
t.datetime "confirmed_at"
|
||||
t.datetime "confirmation_sent_at"
|
||||
t.string "reset_password_token"
|
||||
t.string "remember_token"
|
||||
t.datetime "remember_created_at"
|
||||
t.integer "sign_in_count", :default => 0
|
||||
t.datetime "current_sign_in_at"
|
||||
t.datetime "last_sign_in_at"
|
||||
t.string "current_sign_in_ip"
|
||||
t.string "last_sign_in_ip"
|
||||
t.integer "failed_attempts", :default => 0
|
||||
t.string "unlock_token"
|
||||
t.datetime "locked_at"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "name"
|
||||
end
|
||||
|
||||
add_index "admins", ["confirmation_token"], :name => "index_admins_on_confirmation_token", :unique => true
|
||||
add_index "admins", ["email"], :name => "index_admins_on_email", :unique => true
|
||||
add_index "admins", ["reset_password_token"], :name => "index_admins_on_reset_password_token", :unique => true
|
||||
|
||||
create_table "cards", :force => true do |t|
|
||||
t.string "card_number"
|
||||
@@ -22,6 +49,13 @@ ActiveRecord::Schema.define(:version => 20140223060554) do
|
||||
t.string "name"
|
||||
end
|
||||
|
||||
create_table "categories", :force => true do |t|
|
||||
t.string "name"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "parent"
|
||||
end
|
||||
|
||||
create_table "certifications", :force => true do |t|
|
||||
t.string "name"
|
||||
t.string "description"
|
||||
@@ -30,6 +64,19 @@ ActiveRecord::Schema.define(:version => 20140223060554) do
|
||||
t.string "slug"
|
||||
end
|
||||
|
||||
create_table "contracts", :force => true do |t|
|
||||
t.integer "user_id"
|
||||
t.datetime "first_name"
|
||||
t.datetime "last_name"
|
||||
t.datetime "signed_at"
|
||||
t.string "document_file_name"
|
||||
t.string "document_content_type"
|
||||
t.integer "document_file_size"
|
||||
t.datetime "document_updated_at"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "door_logs", :force => true do |t|
|
||||
t.string "key"
|
||||
t.integer "data"
|
||||
@@ -117,6 +164,15 @@ ActiveRecord::Schema.define(:version => 20140223060554) do
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "reservations", :force => true do |t|
|
||||
t.datetime "checkout_date"
|
||||
t.string "checkout_signature"
|
||||
t.datetime "return_date"
|
||||
t.string "return_signature"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "resource_categories", :force => true do |t|
|
||||
t.string "name"
|
||||
t.datetime "created_at"
|
||||
|
||||
Reference in New Issue
Block a user