Migrates adding limit to username and removing Comment.title

This commit is contained in:
kikito
2015-09-09 15:52:43 +02:00
parent a8decd2c05
commit a1ede8f9b6
3 changed files with 22 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
class SetUsernameLimit < ActiveRecord::Migration
def change
change_column :users, :username, :string, limit: 200
end
end

View File

@@ -0,0 +1,5 @@
class RemoveCommentTitle < ActiveRecord::Migration
def change
remove_column :comments, :title
end
end