Sha256: 4aea82232a7271f5d8bbb51b0dd6076eb1c85213c833d144c4244a279cf53d2c
Contents?: true
Size: 427 Bytes
Versions: 21
Compression:
Stored size: 427 Bytes
Contents
module Spider; module Migrations class DropTable < IrreversibleMigration def initialize(model, options={}) @model = model @options = options end def run table = @options[:table_name] if !table table = @model.mapper.schema.table.name end @model.mapper.storage.drop_table(table) end end end; end
Version data entries
21 entries across 21 versions & 1 rubygems