Sha256: e70baede9288be7c5d60938ed143c188dc8ca1c92f7870313eec90e51de37862

Contents?: true

Size: 501 Bytes

Versions: 18

Compression:

Stored size: 501 Bytes

Contents

class CreateSettingsAndUsers < ActiveRecord::Migration
  def self.up
    create_table :settings, :force => true do |t|
      t.string :var, :null => false
      t.text   :value, :null => true
      t.timestamps
    end
    
    change_table(:users) do |t|
      t.string :name, :limit => 128
      t.string :permalink, :limit => 128
      t.string :role, :limit => 10
    end
  end

  def self.down
    change_table(:users) do |t|
      t.remove :name, :role
    end
    drop_table :settings
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
beef-admin_area-0.1.6 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.1.7 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.3.9 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.3.8 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.3.7 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.3.6 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.3.4 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.3.3 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.3.2 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.3.0 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.2.6 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.2.5 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.2.4 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.2.3 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.2.2 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.2.1 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.2.0 generators/admin_area_files/templates/migration.rb
beef-admin_area-0.1.9 generators/admin_area_files/templates/migration.rb