Sha256: 287e0de26cbb001e6d1dd33c5eeef470952172d8c940afd9bc8e2adb008f4be6

Contents?: true

Size: 447 Bytes

Versions: 51

Compression:

Stored size: 447 Bytes

Contents

class AddSettingsTable < ActiveRecord::Migration
  
  def up
    create_table "settings" do |t|
      t.column "name",              :string, :null => false
      t.column "value",             :text
      
      t.column "created_on",        :timestamp
      t.column "updated_on",        :timestamp
    end
    add_index "settings", ["name"], :name => "UN_settings_name", :unique => true
  end
  
  def down
    drop_table "settings"
  end
  
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
imagine_cms-4.2.4 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.1.4 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.2.3 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.2.2 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.2.1 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.2.0 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.1.3 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.1.2 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.1.1 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.1.0 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.0.1 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-4.0.0 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-3.0.33 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-3.0.32 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-3.0.31 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-3.0.30 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-3.0.29 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-3.0.28 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-3.0.27 db/migrate/20121108004747_add_settings_table.rb
imagine_cms-3.0.26 db/migrate/20121108004747_add_settings_table.rb