Sha256: 4dd991a7c484f2226105c0a6c657e50a7b81b73597529613202094bd7743bb89

Contents?: true

Size: 1010 Bytes

Versions: 2

Compression:

Stored size: 1010 Bytes

Contents

class FlmsCreateLayers < ActiveRecord::Migration
  def change
    create_table :flms_layers do |t|
      t.string    :name
      t.string    :type
      t.integer   :block_id
      t.float     :width
      t.float     :height
      t.string    :z_index, default: '0', null: false
      t.string    :image_display_mode, default: 'cover'
      t.boolean   :dom_remove, default: true, null: false
      t.boolean   :active, default: true

      # Image layer attributes
      t.string    :image

      # Text layer attributes
      t.string    :text
      t.float     :font_size
      t.string    :color

      # Paragraph layer attributes
      t.string    :header
      t.text      :body, limit: nil

      # Embed layer attributes
      t.text      :embed_code, limit: nil

      # Animation layer attributes
      t.integer   :frame_rate
      t.integer   :frame_count
      t.integer   :image_width
      t.integer   :image_height

      t.timestamps
    end

    add_index :flms_layers, :block_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flms-0.9.0 db/migrate/20130312220011_flms_create_layers.rb
flms-0.1.0 db/migrate/20130312220011_flms_create_layers.rb