Sha256: 6d7dd0ae45ae7fe2147c575be40833d77ab75dd2f5eeef4ad03b106c1e1b83d8

Contents?: true

Size: 479 Bytes

Versions: 13

Compression:

Stored size: 479 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.string(:locale,            :null => true)
       t.timestamps
      end
  end

  def self.down
    drop_table(:settings)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
has_setting-1.0.4 help/001_create_settings.rb
has_setting-1.0.3 help/001_create_settings.rb
has_setting-1.0.2 help/001_create_settings.rb
has_setting-1.0.1 help/001_create_settings.rb
has_setting-1.0.0 help/001_create_settings.rb
has_setting-0.7.4 help/001_create_settings.rb
has_setting-0.7.3 help/001_create_settings.rb
has_setting-0.7.2 help/001_create_settings.rb
has_setting-0.7.1 help/001_create_settings.rb
has_setting-0.7 help/001_create_settings.rb
has_setting-0.6 help/001_create_settings.rb
has_setting-0.55 help/001_create_settings.rb
has_setting-0.5 help/001_create_settings.rb