updated old migrations

This commit is contained in:
Vokhmin Alexey V 2014-08-21 00:25:09 +04:00
parent b5ad89f9a8
commit 14d2b7073b
3 changed files with 3 additions and 17 deletions

View File

@ -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

View File

@ -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

View File

@ -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