updated old migrations
This commit is contained in:
parent
b5ad89f9a8
commit
14d2b7073b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue