remove trailing spaces and blank lines
This commit is contained in:
parent
a1ed852287
commit
f91467a00a
15 changed files with 259 additions and 37 deletions
|
|
@ -5,7 +5,7 @@ class CreateRolesTable < ActiveRecord::Migration
|
|||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def self.down
|
||||
drop_table :roles
|
||||
end
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ class UserRolesTable < ActiveRecord::Migration
|
|||
t.references :role, :user
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def self.down
|
||||
drop_table :roles_users
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
class CreateComments < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :comments do |t|
|
||||
t.string :title, limit: 50, default: ""
|
||||
t.string :title, limit: 50, default: ""
|
||||
t.text :comment
|
||||
t.references :commentable, polymorphic: true
|
||||
t.references :user
|
||||
|
|
|
|||
|
|
@ -5,15 +5,13 @@ class ActsAsCommentableUpgradeMigration < ActiveRecord::Migration
|
|||
add_column :comments, :parent_id, :integer
|
||||
add_column :comments, :lft, :integer
|
||||
add_column :comments, :rgt, :integer
|
||||
|
||||
end
|
||||
|
||||
|
||||
def self.down
|
||||
rename_column :comments, :body, :comment
|
||||
remove_column :comments, :subject
|
||||
remove_column :comments, :parent_id
|
||||
remove_column :comments, :lft
|
||||
remove_column :comments, :rgt
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
class AddUseDifficultyLevelsToConference < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :use_difficulty_levels, :boolean, default: false
|
||||
add_column :conferences, :use_difficulty_levels, :boolean, default: false
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ class UseVdaysVpositionsDefaults < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def down
|
||||
change_column :conferences, :use_vpositions, :boolean, default: nil
|
||||
change_column :conferences, :use_vdays, :boolean, default: nil
|
||||
change_column :conferences, :use_vpositions, :boolean, default: nil
|
||||
change_column :conferences, :use_vdays, :boolean, default: nil
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue