Sha256: 10df3e371e76e38ee57f8fd79926192c722e515720f284f8b56c9c3cd810b3cb
Contents?: true
Size: 452 Bytes
Versions: 20
Compression:
Stored size: 452 Bytes
Contents
class RenameAppConfiguration < ActiveRecord::Migration def self.up rename_table :app_configurations, :configurations change_table :configurations do |t| t.string :type end execute "UPDATE configurations SET type = 'AppConfiguration' WHERE name = 'Default configuration'" end def self.down change_table :configurations do |t| t.remove :type end rename_table :configurations, :app_configurations end end
Version data entries
20 entries across 20 versions & 3 rubygems