updated old migrations
This commit is contained in:
parent
b5ad89f9a8
commit
14d2b7073b
|
@ -1,15 +1,10 @@
|
||||||
class CreatePermissions < ActiveRecord::Migration
|
class CreatePermissions < ActiveRecord::Migration
|
||||||
def self.up
|
def change
|
||||||
create_table :permissions do |t|
|
create_table :permissions do |t|
|
||||||
t.integer :id
|
|
||||||
t.integer :right_id
|
t.integer :right_id
|
||||||
t.integer :role_id
|
t.integer :role_id
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
|
||||||
drop_table :permissions
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
class CreateRoles < ActiveRecord::Migration
|
class CreateRoles < ActiveRecord::Migration
|
||||||
def self.up
|
def change
|
||||||
create_table :roles do |t|
|
create_table :roles do |t|
|
||||||
t.integer :id
|
t.integer :id
|
||||||
t.string :name
|
t.string :name
|
||||||
|
@ -7,8 +7,4 @@ class CreateRoles < ActiveRecord::Migration
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
|
||||||
drop_table :roles
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
class CreateProjectToRepositories < ActiveRecord::Migration
|
class CreateProjectToRepositories < ActiveRecord::Migration
|
||||||
def self.up
|
def change
|
||||||
create_table :project_to_repositories do |t|
|
create_table :project_to_repositories do |t|
|
||||||
t.integer :id
|
|
||||||
t.integer :project_id
|
t.integer :project_id
|
||||||
t.integer :repository_id
|
t.integer :repository_id
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
|
||||||
drop_table :project_to_repositories
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue