Sha256: f04c386865b9155497a40f78aaccfbde006d878de87c94988babf607f39166ad

Contents?: true

Size: 361 Bytes

Versions: 19

Compression:

Stored size: 361 Bytes

Contents

class CreateStorytimeVersions < ActiveRecord::Migration
  def change
    create_table :storytime_versions do |t|
      t.text :content
      t.references :user, index: true
      t.references :versionable, polymorphic: true

      t.timestamps
    end
    add_index :storytime_versions, [:versionable_type, :versionable_id], name: "versionable_index"
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
storytime-2.1.6 db/migrate/20140516141252_create_storytime_versions.rb
storytime-2.1.5 db/migrate/20140516141252_create_storytime_versions.rb
storytime-2.1.4 db/migrate/20140516141252_create_storytime_versions.rb
storytime-2.1.3 db/migrate/20140516141252_create_storytime_versions.rb
storytime-2.1.2 db/migrate/20140516141252_create_storytime_versions.rb
storytime-2.1.1 db/migrate/20140516141252_create_storytime_versions.rb
storytime-2.1.0 db/migrate/20140516141252_create_storytime_versions.rb
storytime-2.0.0 db/migrate/20140516141252_create_storytime_versions.rb
storytime-1.2.0 db/migrate/20140516141252_create_storytime_versions.rb
storytime-1.1.1 db/migrate/20140516141252_create_storytime_versions.rb
storytime-1.0.7 db/migrate/20140516141252_create_storytime_versions.rb
storytime-1.0.6 db/migrate/20140516141252_create_storytime_versions.rb
storytime-1.0.5 db/migrate/20140516141252_create_storytime_versions.rb
storytime-1.0.2 db/migrate/20140516141252_create_storytime_versions.rb
storytime-1.0.1 db/migrate/20140516141252_create_storytime_versions.rb
storytime-1.0.0 db/migrate/20140516141252_create_storytime_versions.rb
storytime-0.0.4 db/migrate/20140516141252_create_storytime_versions.rb
storytime-0.0.2 db/migrate/20140516141252_create_storytime_versions.rb
storytime-0.0.1 db/migrate/20140516141252_create_storytime_versions.rb