Sha256: 09313ed0c5e9f42d776d65f19057544ccb1ebc80a4f4e5f092eb1b32cd78f7f2
Contents?: true
Size: 476 Bytes
Versions: 22
Compression:
Stored size: 476 Bytes
Contents
# -*- encoding : utf-8 -*- class AddUserTypesToBookmarksSearches < ActiveRecord::Migration def self.up add_column :searches, :user_type, :string add_column :bookmarks, :user_type, :string Search.reset_column_information Bookmark.reset_column_information Search.update_all("user_type = 'user'") Bookmark.update_all("user_type = 'user'") end def self.down remove_column :searches, :user_type remove_column :bookmarks, :user_type end end
Version data entries
22 entries across 22 versions & 3 rubygems