Sha256: 2e588a25325c47b7ec01ab1fd2482d70923b119392d3458f7c6bfb7e84942dba

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

class CreateStaticPages < ActiveRecord::Migration
  def self.up
    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

  def self.down
    drop_table :static_pages
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.3.6 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.3.5 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.3.4 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.3.3 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.3.2 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.3.1 db/migrate/20130101000005_create_static_pages.rb
ab_admin-0.3.0 db/migrate/20130101000005_create_static_pages.rb