Sha256: b8767ad5f4c540af58747f974ba5a4208ccf56824e9e10e4d2a44c6cf0835c17

Contents?: true

Size: 281 Bytes

Versions: 18

Compression:

Stored size: 281 Bytes

Contents

class MakeTicketUuidNotNull < ActiveRecord::Migration
  def up
    # Every ticket must have a uuid for this to work.
    # Run `rake backfill_ticket_uuids` first
    change_column_null :tickets, :uuid, false
  end

  def down
    change_column_null :tickets, :uuid, true
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.3.0.pre3 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.3.0.pre2 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.3.0.pre1 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.beta.1 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.alpha.2 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.alpha.1 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.27 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.26 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.24 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.23 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.21 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.20 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.19 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.18 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.17 db/migrate/20130820025134_make_ticket_uuid_not_null.rb
artfully_ose-1.2.0.pre.16 db/migrate/20130820025134_make_ticket_uuid_not_null.rb