Sha256: df6c60c122c9b13ea60ae1add3e039e32efa96b96c1056c9c62d47072ab63ed7
Contents?: true
Size: 679 Bytes
Versions: 9
Compression:
Stored size: 679 Bytes
Contents
class AddProxyLinks < ActiveRecord::Migration def self.up create_table :proxy_links do |t| # t.foreign_key :address_id, :mailinglist_id, # :on_delete => :set_null, # :on_update => :cascade t.column 'mailinglist_id', :integer, :null => false t.column 'address_id', :integer, :null => false end drop_table :addresses_users end def self.down drop_table :proxy_links create_table :addresses_users, :id => false do |t| t.column 'user_id', :integer, :null => false t.column 'address_id', :integer, :null => false end end end
Version data entries
9 entries across 9 versions & 1 rubygems