Commit 3b0d7a30718a26b019a14a9e5c0b61f3c3fee58d

Authored by Dmitriy Zaporozhets
1 parent ed3d31d5

Drop deprecated tables

db/migrate/20130821090530_remove_deprecated_tables.rb 0 → 100644
@@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
  1 +class RemoveDeprecatedTables < ActiveRecord::Migration
  2 + def up
  3 + drop_table :user_teams
  4 + drop_table :user_team_project_relationships
  5 + drop_table :user_team_user_relationships
  6 + end
  7 +
  8 + def down
  9 + raise 'No rollback for this migration'
  10 + end
  11 +end
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 # 11 #
12 # It's strongly recommended to check this file into your version control system. 12 # It's strongly recommended to check this file into your version control system.
13 13
14 -ActiveRecord::Schema.define(:version => 20130819182730) do 14 +ActiveRecord::Schema.define(:version => 20130821090530) do
15 15
16 create_table "deploy_keys_projects", :force => true do |t| 16 create_table "deploy_keys_projects", :force => true do |t|
17 t.integer "deploy_key_id", :null => false 17 t.integer "deploy_key_id", :null => false
@@ -246,32 +246,6 @@ ActiveRecord::Schema.define(:version =&gt; 20130819182730) do @@ -246,32 +246,6 @@ ActiveRecord::Schema.define(:version =&gt; 20130819182730) do
246 t.string "name" 246 t.string "name"
247 end 247 end
248 248
249 - create_table "user_team_project_relationships", :force => true do |t|  
250 - t.integer "project_id"  
251 - t.integer "user_team_id"  
252 - t.integer "greatest_access"  
253 - t.datetime "created_at", :null => false  
254 - t.datetime "updated_at", :null => false  
255 - end  
256 -  
257 - create_table "user_team_user_relationships", :force => true do |t|  
258 - t.integer "user_id"  
259 - t.integer "user_team_id"  
260 - t.boolean "group_admin"  
261 - t.integer "permission"  
262 - t.datetime "created_at", :null => false  
263 - t.datetime "updated_at", :null => false  
264 - end  
265 -  
266 - create_table "user_teams", :force => true do |t|  
267 - t.string "name"  
268 - t.string "path"  
269 - t.integer "owner_id"  
270 - t.datetime "created_at", :null => false  
271 - t.datetime "updated_at", :null => false  
272 - t.string "description", :default => "", :null => false  
273 - end  
274 -  
275 create_table "users", :force => true do |t| 249 create_table "users", :force => true do |t|
276 t.string "email", :default => "", :null => false 250 t.string "email", :default => "", :null => false
277 t.string "encrypted_password", :default => "", :null => false 251 t.string "encrypted_password", :default => "", :null => false