Sha256: de0ec4608eb136053696e7ae660910488e3060d30aebe689d7f5d1ffacd50b34

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

class CreateSettings < ActiveRecord::Migration
  def self.up
     create_table :settings do |t|
       t.string(:owner_type,        :null => false)
       t.integer(:owner_id,         :null => false)
       t.string(:name,              :null => false,   :length => 64)
       t.string(:value,             :null => true,    :length => 255)
       t.timestamps
      end
  end

  def self.down
    drop_table(:settings)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
simplificator-has_setting-0.4.2 help/001_create_settings.rb
simplificator-has_setting-0.4.3 help/001_create_settings.rb
has_setting-0.4.6 help/001_create_settings.rb