Browse Source

Remove username from users table

master
Adrian Short 11 years ago
parent
commit
da5e5adbaf
2 changed files with 10 additions and 2 deletions
  1. +9
    -0
      db/migrate/20130222120002_remove_user_username.rb
  2. +1
    -2
      db/schema.rb

+ 9
- 0
db/migrate/20130222120002_remove_user_username.rb View File

@@ -0,0 +1,9 @@
class RemoveUserUsername < ActiveRecord::Migration
def up
remove_column :users, :username
end

def down
add_column :users, :username, :string, :null => false
end
end

+ 1
- 2
db/schema.rb View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20130222112030) do
ActiveRecord::Schema.define(:version => 20130222120002) do

create_table "feeds", :force => true do |t|
t.string "title"
@@ -40,7 +40,6 @@ ActiveRecord::Schema.define(:version => 20130222112030) do
end

create_table "users", :force => true do |t|
t.string "username", :null => false
t.string "email"
t.string "crypted_password"
t.string "salt"


Loading…
Cancel
Save