Sha256: 4c56a23ef2e725fb9212c64b17d3383ec55ce894d6df71abdb1ef557fade3a6a

Contents?: true

Size: 346 Bytes

Versions: 10

Compression:

Stored size: 346 Bytes

Contents

class CreateStaticPages < ActiveRecord::Migration
  def change
    create_table :static_pages do |t|
      t.integer   :structure_id, null: false
      t.references :user
      t.boolean :is_visible, default: true, null: false

      t.timestamps
    end

    add_index :static_pages, :user_id
    add_index :static_pages, :structure_id
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ab_admin-0.9.0 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.8.3 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.8.2 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.8.1 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.8.0 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.7.0 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.6.1 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.6.0 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.5.0 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.4.0 db/migrate/20130101000005_create_static_pages.rb