Commit b2ff80b5767806f6ce8ff9ac0f2204670255d8c2
Committed by
Rodrigo Souto
1 parent
70a1c97a
Exists in
master
and in
29 other branches
api: renaming private token migration
Showing
3 changed files
with
20 additions
and
18 deletions
Show diff stats
db/migrate/20140407013817_add_private_token_info_to_users.rb
... | ... | @@ -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 @@ |
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/schema.rb
... | ... | @@ -729,24 +729,26 @@ ActiveRecord::Schema.define(:version => 20150525101430) do |
729 | 729 | create_table "users", :force => true do |t| |
730 | 730 | t.string "login" |
731 | 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 | 734 | t.datetime "created_at" |
735 | 735 | t.datetime "updated_at" |
736 | 736 | t.string "remember_token" |
737 | 737 | t.datetime "remember_token_expires_at" |
738 | 738 | t.text "terms_of_use" |
739 | - t.string "terms_accepted", :limit => 1 | |
739 | + t.string "terms_accepted", :limit => 1 | |
740 | 740 | t.integer "environment_id" |
741 | 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 | 745 | t.datetime "chat_status_at" |
746 | - t.string "activation_code", :limit => 40 | |
746 | + t.string "activation_code", :limit => 40 | |
747 | 747 | t.datetime "activated_at" |
748 | 748 | t.string "return_to" |
749 | 749 | t.datetime "last_login_at" |
750 | + t.string "private_token" | |
751 | + t.datetime "private_token_generated_at" | |
750 | 752 | end |
751 | 753 | |
752 | 754 | create_table "validation_infos", :force => true do |t| | ... | ... |