diff --git a/db/migrate/20130619124042_create_posts.rb b/db/migrate/20130619124042_create_posts.rb deleted file mode 100644 index 195b1f7..0000000 --- a/db/migrate/20130619124042_create_posts.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.integer :owner_id - t.text :title - t.text :body - - t.timestamps - end - end -end diff --git a/db/migrate/20130619173956_add_published_to_posts.rb b/db/migrate/20130619173956_add_published_to_posts.rb deleted file mode 100644 index d117d2e..0000000 --- a/db/migrate/20130619173956_add_published_to_posts.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddPublishedToPosts < ActiveRecord::Migration - def change - add_column :posts, :draft, :boolean - end -end diff --git a/db/migrate/20130618222432_devise_create_users.rb b/db/migrate/20140921014021_devise_create_users.rb similarity index 93% rename from db/migrate/20130618222432_devise_create_users.rb rename to db/migrate/20140921014021_devise_create_users.rb index 0c2baf4..180027e 100644 --- a/db/migrate/20130618222432_devise_create_users.rb +++ b/db/migrate/20140921014021_devise_create_users.rb @@ -1,6 +1,6 @@ class DeviseCreateUsers < ActiveRecord::Migration def change - create_table(:users) do |t| + create_table :users do |t| ## Database authenticatable t.string :email, :null => false, :default => "" t.string :encrypted_password, :null => false, :default => "" @@ -20,6 +20,8 @@ def change t.string :last_sign_in_ip t.timestamps + + t.string :phone end add_index :users, :email, :unique => true diff --git a/db/migrate/20130618224052_create_roles.rb b/db/migrate/20140921015821_create_roles.rb similarity index 100% rename from db/migrate/20130618224052_create_roles.rb rename to db/migrate/20140921015821_create_roles.rb diff --git a/db/migrate/20130618224239_roles_users.rb b/db/migrate/20140921022327_roles_users.rb similarity index 100% rename from db/migrate/20130618224239_roles_users.rb rename to db/migrate/20140921022327_roles_users.rb diff --git a/db/migrate/20130618232522_create_permissions.rb b/db/migrate/20140921024634_create_permissions.rb similarity index 100% rename from db/migrate/20130618232522_create_permissions.rb rename to db/migrate/20140921024634_create_permissions.rb diff --git a/db/migrate/20130619074955_permissions_roles.rb b/db/migrate/20140921031532_permissions_roles.rb similarity index 100% rename from db/migrate/20130619074955_permissions_roles.rb rename to db/migrate/20140921031532_permissions_roles.rb diff --git a/db/migrate/20130619130938_add_username_to_users.rb b/db/migrate/20140921040527_add_username_to_users.rb similarity index 100% rename from db/migrate/20130619130938_add_username_to_users.rb rename to db/migrate/20140921040527_add_username_to_users.rb diff --git a/db/migrate/20130619131328_add_name_to_users.rb b/db/migrate/20140921041345_add_name_to_users.rb similarity index 100% rename from db/migrate/20130619131328_add_name_to_users.rb rename to db/migrate/20140921041345_add_name_to_users.rb diff --git a/db/migrate/20140921061139_create_jobs.rb b/db/migrate/20140921061139_create_jobs.rb index 3c66969..9fa1d7c 100644 --- a/db/migrate/20140921061139_create_jobs.rb +++ b/db/migrate/20140921061139_create_jobs.rb @@ -8,6 +8,8 @@ def up t.string :location t.integer :category_id t.datetime :deadline + + t.timestamps end end diff --git a/db/migrate/20140921064720_create_resumes.rb b/db/migrate/20140921064720_create_resumes.rb index f37d8fd..7b4a27c 100644 --- a/db/migrate/20140921064720_create_resumes.rb +++ b/db/migrate/20140921064720_create_resumes.rb @@ -3,6 +3,7 @@ def up create_table :resumes do |t| t.string :title t.string :body + t.integer :owner_id end end diff --git a/db/migrate/20140921070518_create_skills.rb b/db/migrate/20140921070518_create_skills.rb index 3e3fefe..d70f368 100644 --- a/db/migrate/20140921070518_create_skills.rb +++ b/db/migrate/20140921070518_create_skills.rb @@ -2,6 +2,7 @@ class CreateSkills < ActiveRecord::Migration def up create_table :skills do |t| t.string :name + t.integer :users_id end end diff --git a/db/migrate/20140921074109_users_skills.rb b/db/migrate/20140921074109_users_skills.rb new file mode 100644 index 0000000..0cb5db0 --- /dev/null +++ b/db/migrate/20140921074109_users_skills.rb @@ -0,0 +1,11 @@ +class UsersSkills < ActiveRecord::Migration + def up + create table :users_skills, :id=>false do |t| + t.integer :user_id + t.integer :skill_id + end + end + def down + drop table :users_skills + end +end