Commit b2ff80b5767806f6ce8ff9ac0f2204670255d8c2

Authored by Leandro Santos
Committed by Rodrigo Souto
1 parent 70a1c97a

api: renaming private token migration

db/migrate/20140407013817_add_private_token_info_to_users.rb
@@ -1,11 +0,0 @@ @@ -1,11 +0,0 @@
1 -class AddPrivateTokenInfoToUsers < ActiveRecord::Migration  
2 - def self.up  
3 - add_column :users, :private_token, :string  
4 - add_column :users, :private_token_generated_at, :datetime  
5 - end  
6 -  
7 - def self.down  
8 - remove_column :users, :private_token  
9 - remove_column :users, :private_token_generated_at  
10 - end  
11 -end  
db/migrate/20150223180807_add_private_token_info_to_users.rb 0 → 100644
@@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
  1 +class AddPrivateTokenInfoToUsers < ActiveRecord::Migration
  2 + def self.up
  3 + add_column :users, :private_token, :string
  4 + add_column :users, :private_token_generated_at, :datetime
  5 + end
  6 +
  7 + def self.down
  8 + remove_column :users, :private_token
  9 + remove_column :users, :private_token_generated_at
  10 + end
  11 +end
@@ -729,24 +729,26 @@ ActiveRecord::Schema.define(:version =&gt; 20150525101430) do @@ -729,24 +729,26 @@ ActiveRecord::Schema.define(:version =&gt; 20150525101430) do
729 create_table "users", :force => true do |t| 729 create_table "users", :force => true do |t|
730 t.string "login" 730 t.string "login"
731 t.string "email" 731 t.string "email"
732 - t.string "crypted_password", :limit => 40  
733 - t.string "salt", :limit => 40 732 + t.string "crypted_password", :limit => 40
  733 + t.string "salt", :limit => 40
734 t.datetime "created_at" 734 t.datetime "created_at"
735 t.datetime "updated_at" 735 t.datetime "updated_at"
736 t.string "remember_token" 736 t.string "remember_token"
737 t.datetime "remember_token_expires_at" 737 t.datetime "remember_token_expires_at"
738 t.text "terms_of_use" 738 t.text "terms_of_use"
739 - t.string "terms_accepted", :limit => 1 739 + t.string "terms_accepted", :limit => 1
740 t.integer "environment_id" 740 t.integer "environment_id"
741 t.string "password_type" 741 t.string "password_type"
742 - t.boolean "enable_email", :default => false  
743 - t.string "last_chat_status", :default => ""  
744 - t.string "chat_status", :default => "" 742 + t.boolean "enable_email", :default => false
  743 + t.string "last_chat_status", :default => ""
  744 + t.string "chat_status", :default => ""
745 t.datetime "chat_status_at" 745 t.datetime "chat_status_at"
746 - t.string "activation_code", :limit => 40 746 + t.string "activation_code", :limit => 40
747 t.datetime "activated_at" 747 t.datetime "activated_at"
748 t.string "return_to" 748 t.string "return_to"
749 t.datetime "last_login_at" 749 t.datetime "last_login_at"
  750 + t.string "private_token"
  751 + t.datetime "private_token_generated_at"
750 end 752 end
751 753
752 create_table "validation_infos", :force => true do |t| 754 create_table "validation_infos", :force => true do |t|