Skip to content

Commit

Permalink
Delete some old migrations, update others. Also added new migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Druotic authored and Shanil Puri committed Sep 22, 2014
1 parent 1c6d150 commit ed29293
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 17 deletions.
11 changes: 0 additions & 11 deletions db/migrate/20130619124042_create_posts.rb

This file was deleted.

5 changes: 0 additions & 5 deletions db/migrate/20130619173956_add_published_to_posts.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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 => ""
Expand All @@ -20,6 +20,8 @@ def change
t.string :last_sign_in_ip

t.timestamps

t.string :phone
end

add_index :users, :email, :unique => true
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions db/migrate/20140921061139_create_jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def up
t.string :location
t.integer :category_id
t.datetime :deadline

t.timestamps
end
end

Expand Down
1 change: 1 addition & 0 deletions db/migrate/20140921064720_create_resumes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ def up
create_table :resumes do |t|
t.string :title
t.string :body
t.integer :owner_id
end
end

Expand Down
1 change: 1 addition & 0 deletions db/migrate/20140921070518_create_skills.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class CreateSkills < ActiveRecord::Migration
def up
create_table :skills do |t|
t.string :name
t.integer :users_id
end
end

Expand Down
11 changes: 11 additions & 0 deletions db/migrate/20140921074109_users_skills.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ed29293

Please sign in to comment.