Sha256: 61ef4ffe7620514f6c97e67dc4ddc1a41521d443610a13722c2fb844f36048a0

Contents?: true

Size: 434 Bytes

Versions: 16

Compression:

Stored size: 434 Bytes

Contents

class CreateHowToContents < ActiveRecord::Migration
  def change
    create_table :how_to_contents do |t|
      t.integer :section_id
      t.integer :order , default: 0
      t.boolean :active, default: true
      t.timestamps
    end

    create_table :how_to_content_translations do |t|
      t.integer :how_to_content_id
      t.string :locale
      t.string :title
      t.text :description

      t.timestamps
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
how_to-2.0.5 db/migrate/20130602054608_create_how_to_contents.rb
how_to-2.0.4 db/migrate/20130602054608_create_how_to_contents.rb
how_to-2.0.3 db/migrate/20130602054608_create_how_to_contents.rb
how_to-2.0.2 db/migrate/20130602054608_create_how_to_contents.rb
how_to-2.0.1 db/migrate/20130602054608_create_how_to_contents.rb
how_to-2.0.0 db/migrate/20130602054608_create_how_to_contents.rb
how_to-1.0.3 db/migrate/20130602054608_create_how_to_contents.rb
how_to-1.0.2 db/migrate/20130602054608_create_how_to_contents.rb
how_to-0.0.8 db/migrate/20130602054608_create_how_to_contents.rb
how_to-0.0.7 db/migrate/20130602054608_create_how_to_contents.rb
how_to-0.0.6 db/migrate/20130602054608_create_how_to_contents.rb
how_to-0.0.5 db/migrate/20130602054608_create_how_to_contents.rb
how_to-0.0.4 db/migrate/20130602054608_create_how_to_contents.rb
how_to-0.0.3 db/migrate/20130602054608_create_how_to_contents.rb
how_to-0.0.2 db/migrate/20130602054608_create_how_to_contents.rb
how_to-0.0.1 db/migrate/20130602054608_create_how_to_contents.rb