Sha256: 2c72556ba35d67be692dc01e6fec85f9df6f449936c754d9dce08a3ded17b9ae

Contents?: true

Size: 260 Bytes

Versions: 11

Compression:

Stored size: 260 Bytes

Contents

class CreateTickets < ActiveRecord::Migration

  def up
    unless table_exists?(:tickets)
      create_table :tickets do |t|
        t.timestamps
      end
    end

  end

  def down
    if table_exists?(:tickets)
      drop_table :tickets
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
erp_forms-3.1.2 db/migrate/20120824012520_create_tickets.rb
erp_forms-3.1.1 db/migrate/20120824012520_create_tickets.rb
erp_forms-3.1.0 db/migrate/20120824012520_create_tickets.rb
erp_forms-3.0.2 db/migrate/20120824012520_create_tickets.rb
erp_forms-3.0.1 db/migrate/20120824012520_create_tickets.rb
erp_forms-3.0.0 db/migrate/20120824012520_create_tickets.rb
erp_forms-2.1.0 db/migrate/20120824012520_create_tickets.rb
erp_forms-2.0.6 db/migrate/20120824012520_create_tickets.rb
erp_forms-2.0.5 db/migrate/20120824012520_create_tickets.rb
erp_forms-2.0.4 db/migrate/20120824012520_create_tickets.rb
erp_forms-2.0.3 db/migrate/20120824012520_create_tickets.rb