diff --git a/db/migrate/20140407013817_add_private_token_info_to_users.rb b/db/migrate/20140407013817_add_private_token_info_to_users.rb deleted file mode 100644 index 82b21d2..0000000 --- a/db/migrate/20140407013817_add_private_token_info_to_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -class AddPrivateTokenInfoToUsers < ActiveRecord::Migration - def self.up - add_column :users, :private_token, :string - add_column :users, :private_token_generated_at, :datetime - end - - def self.down - remove_column :users, :private_token - remove_column :users, :private_token_generated_at - end -end diff --git a/db/migrate/20150223180807_add_private_token_info_to_users.rb b/db/migrate/20150223180807_add_private_token_info_to_users.rb new file mode 100644 index 0000000..82b21d2 --- /dev/null +++ b/db/migrate/20150223180807_add_private_token_info_to_users.rb @@ -0,0 +1,11 @@ +class AddPrivateTokenInfoToUsers < ActiveRecord::Migration + def self.up + add_column :users, :private_token, :string + add_column :users, :private_token_generated_at, :datetime + end + + def self.down + remove_column :users, :private_token + remove_column :users, :private_token_generated_at + end +end diff --git a/db/schema.rb b/db/schema.rb index 3dfc453..6c6cca1 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -729,24 +729,26 @@ ActiveRecord::Schema.define(:version => 20150525101430) do create_table "users", :force => true do |t| t.string "login" t.string "email" - t.string "crypted_password", :limit => 40 - t.string "salt", :limit => 40 + t.string "crypted_password", :limit => 40 + t.string "salt", :limit => 40 t.datetime "created_at" t.datetime "updated_at" t.string "remember_token" t.datetime "remember_token_expires_at" t.text "terms_of_use" - t.string "terms_accepted", :limit => 1 + t.string "terms_accepted", :limit => 1 t.integer "environment_id" t.string "password_type" - t.boolean "enable_email", :default => false - t.string "last_chat_status", :default => "" - t.string "chat_status", :default => "" + t.boolean "enable_email", :default => false + t.string "last_chat_status", :default => "" + t.string "chat_status", :default => "" t.datetime "chat_status_at" - t.string "activation_code", :limit => 40 + t.string "activation_code", :limit => 40 t.datetime "activated_at" t.string "return_to" t.datetime "last_login_at" + t.string "private_token" + t.datetime "private_token_generated_at" end create_table "validation_infos", :force => true do |t| -- libgit2 0.21.2