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