diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-21 12:08:10 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-21 12:08:10 +0300 |
commit | 3b0d7a30718a26b019a14a9e5c0b61f3c3fee58d (patch) | |
tree | 0cc00243a0172260beaf511a39c00309ba3282f3 /db | |
parent | ed3d31d5b2a3b4384273689f92dd39b10244dd37 (diff) | |
download | gitlab-ce-3b0d7a30718a26b019a14a9e5c0b61f3c3fee58d.tar.gz |
Drop deprecated tables
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130821090530_remove_deprecated_tables.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 28 |
2 files changed, 12 insertions, 27 deletions
diff --git a/db/migrate/20130821090530_remove_deprecated_tables.rb b/db/migrate/20130821090530_remove_deprecated_tables.rb new file mode 100644 index 00000000000..539c0617eeb --- /dev/null +++ b/db/migrate/20130821090530_remove_deprecated_tables.rb @@ -0,0 +1,11 @@ +class RemoveDeprecatedTables < ActiveRecord::Migration + def up + drop_table :user_teams + drop_table :user_team_project_relationships + drop_table :user_team_user_relationships + end + + def down + raise 'No rollback for this migration' + end +end diff --git a/db/schema.rb b/db/schema.rb index c2ba5b65fc3..b8e7d3dd6f2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130819182730) do +ActiveRecord::Schema.define(:version => 20130821090530) do create_table "deploy_keys_projects", :force => true do |t| t.integer "deploy_key_id", :null => false @@ -246,32 +246,6 @@ ActiveRecord::Schema.define(:version => 20130819182730) do t.string "name" end - create_table "user_team_project_relationships", :force => true do |t| - t.integer "project_id" - t.integer "user_team_id" - t.integer "greatest_access" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - - create_table "user_team_user_relationships", :force => true do |t| - t.integer "user_id" - t.integer "user_team_id" - t.boolean "group_admin" - t.integer "permission" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - - create_table "user_teams", :force => true do |t| - t.string "name" - t.string "path" - t.integer "owner_id" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - t.string "description", :default => "", :null => false - end - create_table "users", :force => true do |t| t.string "email", :default => "", :null => false t.string "encrypted_password", :default => "", :null => false |