Sha256: 355247da0cee849be769e9431b7e3e9116fce6382ac1d4289f19499206fded5a

Contents?: true

Size: 451 Bytes

Versions: 22

Compression:

Stored size: 451 Bytes

Contents

class CreateAdminModules < ActiveRecord::Migration[5.1]
  def up
    create_table :admin_modules do |t|
      t.string :type
      t.string :title
      t.text :description
      t.string :panel_type, :default => 'default'
      t.text :settings#, :limit => 100.megabytes
      t.belongs_to :user, :null => true

      t.integer :position, default: 1, index: true

      t.timestamps
    end
  end

  def down
    drop_table(:admin_modules)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
symphonia-3.4.0 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.3.4 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.3.3 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.3.2 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.3.0 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.2.4 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.2.3 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.2.2 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.2.1 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.1.5 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.1.4 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.1.3 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.1.2 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.1.1 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.1.0 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.0.3 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.0.2 db/migrate/20141213204351_create_admin_modules.rb
symphonia-2.2.1 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.0.1 db/migrate/20141213204351_create_admin_modules.rb
symphonia-3.0.0 db/migrate/20141213204351_create_admin_modules.rb