Sha256: 7bb102628e53ecf22a6ba1899b887a55a0e8291efa422d954e3cc9988973268c

Contents?: true

Size: 355 Bytes

Versions: 33

Compression:

Stored size: 355 Bytes

Contents

class LinkSourceTargetCanBeNull < ActiveRecord::Migration
  def self.up
    change_column :links, :target_id, :integer, :null => true
    change_column :links, :source_id, :integer, :null => true
  end

  def self.down
    change_column :links, :target_id, :integer, :null => false
    change_column :links, :source_id, :integer, :null => false
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
zena-1.0.0.beta2 db/migrate/048_link_source_target_can_be_null.rb
zena-1.0.0.beta1 db/migrate/048_link_source_target_can_be_null.rb
zena-0.16.7 db/migrate/048_link_source_target_can_be_null.rb
zena-0.16.6 db/migrate/048_link_source_target_can_be_null.rb
zena-0.16.5 db/migrate/048_link_source_target_can_be_null.rb
zena-0.16.4 db/migrate/048_link_source_target_can_be_null.rb
zena-0.16.3 db/migrate/048_link_source_target_can_be_null.rb
zena-0.16.2 db/migrate/048_link_source_target_can_be_null.rb
zena-0.16.1 db/migrate/048_link_source_target_can_be_null.rb
zena-0.16.0 db/migrate/048_link_source_target_can_be_null.rb
zena-0.15.2 db/migrate/048_link_source_target_can_be_null.rb
zena-0.15.1 db/migrate/048_link_source_target_can_be_null.rb
zena-0.15.0 db/migrate/048_link_source_target_can_be_null.rb