Sha256: 65af3c77c7cbca43e5f4efa73b1f634e87eface079d6cdd82ba09e08b1f5aa0d

Contents?: true

Size: 327 Bytes

Versions: 11

Compression:

Stored size: 327 Bytes

Contents

class CreateWeelerLocks < ActiveRecord::Migration
  def self.up
    create_table :weeler_locks do |t|
      t.string :name, :limit => 40
      t.timestamps
    end
    add_index :weeler_locks, :name, :unique => true
  end

  def self.down
    remove_index :weeler_locks, :column => :name
    drop_table :weeler_locks
  end
end

Version data entries

11 entries across 7 versions & 1 rubygems

Version Path
weeler-2.1.0 lib/generators/weeler/templates/migrations/create_weeler_locks.rb
weeler-2.0.1 lib/generators/weeler/templates/migrations/create_weeler_locks.rb
weeler-2.0.0 lib/generators/weeler/templates/migrations/create_weeler_locks.rb
weeler-1.6.0 spec/dummy/db/migrate/20160330161101_create_weeler_locks.rb
weeler-1.6.0 lib/generators/weeler/templates/migrations/create_weeler_locks.rb
weeler-1.5.4 spec/dummy/db/migrate/20160330161101_create_weeler_locks.rb
weeler-1.5.4 lib/generators/weeler/templates/migrations/create_weeler_locks.rb
weeler-1.5.2 spec/dummy/db/migrate/20160330161101_create_weeler_locks.rb
weeler-1.5.2 lib/generators/weeler/templates/migrations/create_weeler_locks.rb
weeler-1.5.1 lib/generators/weeler/templates/migrations/create_weeler_locks.rb
weeler-1.5.1 spec/dummy/db/migrate/20160330161101_create_weeler_locks.rb