diff --git a/db/migrate/20111012223006_create_permissions.rb b/db/migrate/20111012223006_create_permissions.rb index 8001623a4..7d68b13fa 100644 --- a/db/migrate/20111012223006_create_permissions.rb +++ b/db/migrate/20111012223006_create_permissions.rb @@ -1,15 +1,10 @@ class CreatePermissions < ActiveRecord::Migration - def self.up + def change create_table :permissions do |t| - t.integer :id t.integer :right_id t.integer :role_id t.timestamps end end - - def self.down - drop_table :permissions - end end diff --git a/db/migrate/20111012223306_create_roles.rb b/db/migrate/20111012223306_create_roles.rb index b5693219d..3eca524eb 100644 --- a/db/migrate/20111012223306_create_roles.rb +++ b/db/migrate/20111012223306_create_roles.rb @@ -1,5 +1,5 @@ class CreateRoles < ActiveRecord::Migration - def self.up + def change create_table :roles do |t| t.integer :id t.string :name @@ -7,8 +7,4 @@ class CreateRoles < ActiveRecord::Migration t.timestamps end end - - def self.down - drop_table :roles - end end diff --git a/db/migrate/20111013150125_create_project_to_repositories.rb b/db/migrate/20111013150125_create_project_to_repositories.rb index 148561c4c..46b5d3773 100644 --- a/db/migrate/20111013150125_create_project_to_repositories.rb +++ b/db/migrate/20111013150125_create_project_to_repositories.rb @@ -1,15 +1,10 @@ class CreateProjectToRepositories < ActiveRecord::Migration - def self.up + def change create_table :project_to_repositories do |t| - t.integer :id t.integer :project_id t.integer :repository_id t.timestamps end end - - def self.down - drop_table :project_to_repositories - end end