Sha256: 831b5abe9641e4a8a97ec919ac34b3820d96143345c6b3c403a82fa863e68124
Contents?: true
Size: 655 Bytes
Versions: 33
Compression:
Stored size: 655 Bytes
Contents
class MoveUserLangIntoParticipation < ActiveRecord::Migration def self.up add_column :participations, :lang, :string, :limit => 10, :default => "", :null => false Zena::Db.update_value('participations.lang', :from => 'users.lang', :where => 'participations.user_id = users.id') remove_column :users, :lang end def self.down add_column :users, :lang, :string, :limit => 10, :default => "", :null => false Zena::Db.update_value('users.lang', :from => 'participations.lang', :where => 'participations.user_id = users.id') remove_column :participations, :lang end end
Version data entries
33 entries across 33 versions & 1 rubygems