Sha256: 31e1fda51fe6f4af04d7143921207b81e589cf8dad4411fc7a2f42840da57d78

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

class CreateContainers < ActiveRecord::Migration
  def self.up
    create_table :containers do |t|
      t.column :container_key, :string, :limit => 64, :null => false
      t.column :sim, :string, :limit => 64, :null => false
      t.column :position, :string, :limit => 40, :null => false
      t.column :delay, :integer, :null => false, :default => 30
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end
  end

  def self.down
    drop_table :containers
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
advertnet-1.0.0 db/migrate/003_create_containers.rb
advertnet-1.0.1 db/migrate/003_create_containers.rb