Sha256: 501356390a61e7fa051551229986922984e3f63de7c64263e82a642f2495d231
Contents?: true
Size: 398 Bytes
Versions: 2
Compression:
Stored size: 398 Bytes
Contents
class CreateLocks < ActiveRecord::Migration def self.up create_table :locks do |t| t.string :resource_name, :null => false t.string :key, :null=>false t.datetime :lock_expiry_time, :null => false t.string :caller_key, :null=>false t.boolean :locked, :null=>false, :default=>false t.timestamps end end def self.down drop_table :locks end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apl-library-0.0.90 | db/migrate/20120608075003_create_locks.rb |
apl-library-0.0.90 | vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/db/migrate/20120608075003_create_locks.rb |