Sha256: a0352e6a12f1297c738e7d42a8b310abeff3cd2ced726f09967af00920402d8c

Contents?: true

Size: 1.77 KB

Versions: 6

Compression:

Stored size: 1.77 KB

Contents

ActiveRecord::Schema.define :version => 0 do
  create_table :tags, :force => true do |t|
    t.string :name
  end

  create_table :taggings, :force => true do |t|
    t.references :tag

    # You should make sure that the column created is
    # long enough to store the required class names.
    t.references :taggable, :polymorphic => true
    t.references :tagger, :polymorphic => true

    # Limit is created to prevent MySQL error on index
    # length for MyISAM table type: http://bit.ly/vgW2Ql
    t.string :context, :limit => 128

    t.datetime :created_at
  end
  # above copied from
  # generators/acts_as_taggable_on/migration/migration_generator

  create_table :taggable_models, :force => true do |t|
    t.column :name, :string
    t.column :type, :string
  end

  create_table :non_standard_id_taggable_models, :primary_key => "an_id", :force => true do |t|
    t.column :name, :string
    t.column :type, :string
  end

  create_table :untaggable_models, :force => true do |t|
    t.column :taggable_model_id, :integer
    t.column :name, :string
  end

  create_table :cached_models, :force => true do |t|
    t.column :name, :string
    t.column :type, :string
    t.column :cached_tag_list, :string
  end

  create_table :other_cached_models, :force => true do |t|
    t.column :name, :string
    t.column :type, :string
    t.column :cached_language_list, :string
    t.column :cached_status_list, :string
    t.column :cached_glass_list, :string
  end

  create_table :users, :force => true do |t|
    t.column :name, :string
  end

  create_table :other_taggable_models, :force => true do |t|
    t.column :name, :string
    t.column :type, :string
  end

  create_table :ordered_taggable_models, :force => true do |t|
    t.column :name, :string
    t.column :type, :string
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
acts-as-taggable-on-3.0.2 spec/schema.rb
acts-as-taggable-on-3.1.0.rc1 spec/schema.rb
acts-as-taggable-on-3.0.1 spec/schema.rb
acts-as-taggable-on-3.0.0 spec/schema.rb
acts_as_taggable_on-3.0.0.rc2 spec/schema.rb
acts_as_taggable_on-3.0.0.rc1 spec/schema.rb