Skip to content

Commit

Permalink
migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Blake committed Mar 31, 2009
1 parent 11f02f5 commit 7f1fd7f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions db/migrate/20090330024022_create_user_logins.rb
@@ -0,0 +1,15 @@
class CreateUserLogins < ActiveRecord::Migration
def self.up
create_table :user_logins do |t|
t.integer :user_id
t.string :username
t.string :password
t.timestamps
end
end


def self.down
drop_table :user_logins
end
end
9 changes: 9 additions & 0 deletions db/migrate/20090330024404_add_user_login_id_to_users.rb
@@ -0,0 +1,9 @@
class AddUserLoginIdToUsers < ActiveRecord::Migration
def self.up
add_column :users, :user_login_id, :integer
end

def self.down
remove_column :users, :user_login_id
end
end
9 changes: 9 additions & 0 deletions db/migrate/20090331170204_add_response_to_feedbacks.rb
@@ -0,0 +1,9 @@
class AddResponseToFeedbacks < ActiveRecord::Migration
def self.up
add_column :feedbacks, :response, :string
end

def self.down
remove_column :feedbacks, :response
end
end

0 comments on commit 7f1fd7f

Please sign in to comment.