Skip to content
Browse files

change admin bool

  • Loading branch information...
1 parent 2f57cf0 commit 9f4a3ab307396be529d208536bcf7b86c55b46ff SachinMaharjan committed Apr 20, 2012
Showing with 71 additions and 41 deletions.
  1. +70 −40 .idea/workspace.xml
  2. +1 −1 db/migrate/20120122061252_add_admin_to_users.rb
View
110 .idea/workspace.xml
@@ -2,9 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="a3b023ea-0a92-4470-b82f-fa08100219c1" name="Default" comment="">
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/maharjan.iml" afterPath="$PROJECT_DIR$/.idea/maharjan.iml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/config/database.yml" afterPath="$PROJECT_DIR$/config/database.yml" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/db/migrate/20120122061252_add_admin_to_users.rb" afterPath="$PROJECT_DIR$/db/migrate/20120122061252_add_admin_to_users.rb" />
</list>
<ignored path="maharjan.iws" />
<ignored path=".idea/workspace.xml" />
@@ -37,46 +35,46 @@
</provider>
</entry>
</file>
- <file leaf-file-name="production.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/config/environments/production.rb">
+ <file leaf-file-name="config.yml" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/config/config.yml">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-0.0">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="3.1111112">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="application.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/config/application.rb">
+ <file leaf-file-name="database.yml" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/config/database.yml">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="14.777778">
+ <state line="12" column="19" selection-start="357" selection-end="357" vertical-scroll-proportion="-9.333333">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="boot.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/config/boot.rb">
+ <file leaf-file-name="20120205080404_add_member_id_to_user.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/db/migrate/20120205080404_add_member_id_to_user.rb">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="config.yml" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/config/config.yml">
+ <file leaf-file-name="20120130034750_add_reset_code_to_users.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/db/migrate/20120130034750_add_reset_code_to_users.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="3.1111112">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="database.yml" pinned="false" current="true" current-in-tab="true">
- <entry file="file://$PROJECT_DIR$/config/database.yml">
+ <file leaf-file-name="20120122061252_add_admin_to_users.rb" pinned="false" current="true" current-in-tab="true">
+ <entry file="file://$PROJECT_DIR$/db/migrate/20120122061252_add_admin_to_users.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="20" column="22" selection-start="490" selection-end="490" vertical-scroll-proportion="0.5882353">
+ <state line="2" column="58" selection-start="120" selection-end="120" vertical-scroll-proportion="0.10824742">
<folding />
</state>
</provider>
@@ -132,7 +130,6 @@
<component name="IdeDocumentHistory">
<option name="changedFiles">
<list>
- <option value="$PROJECT_DIR$/config/config.yml" />
<option value="$PROJECT_DIR$/config/environment.rb" />
<option value="$PROJECT_DIR$/app/views/layouts/application.html.haml" />
<option value="$PROJECT_DIR$/app/views/message_mailer/reset.text.plain.haml" />
@@ -148,6 +145,7 @@
<option value="$PROJECT_DIR$/app/views/home/contact.html.haml" />
<option value="$PROJECT_DIR$/Gemfile" />
<option value="$PROJECT_DIR$/config/database.yml" />
+ <option value="$PROJECT_DIR$/db/migrate/20120122061252_add_admin_to_users.rb" />
</list>
</option>
</component>
@@ -258,6 +256,38 @@
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
+ <option name="myItemId" value="db" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="maharjan" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="loseit" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="db" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="migrate" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="maharjan" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="loseit" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
<option name="myItemId" value="config" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
@@ -846,27 +876,6 @@
<breakpoint-manager />
</component>
<component name="editorHistoryManager">
- <entry file="file://$PROJECT_DIR$/app/views/users/index.html.haml">
- <provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="24.11111">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/app/views/users/edit.html.haml">
- <provider selected="true" editor-type-id="text-editor">
- <state line="12" column="28" selection-start="377" selection-end="377" vertical-scroll-proportion="-4.5555553">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/app/views/sessions/new.html.haml">
- <provider selected="true" editor-type-id="text-editor">
- <state line="7" column="39" selection-start="244" selection-end="244" vertical-scroll-proportion="-4.6666665">
- <folding />
- </state>
- </provider>
- </entry>
<entry file="file://$PROJECT_DIR$/app/views/users/_form.html.haml">
<provider selected="true" editor-type-id="text-editor">
<state line="2" column="10" selection-start="61" selection-end="61" vertical-scroll-proportion="6.740741">
@@ -953,7 +962,28 @@
</entry>
<entry file="file://$PROJECT_DIR$/config/database.yml">
<provider selected="true" editor-type-id="text-editor">
- <state line="20" column="22" selection-start="490" selection-end="490" vertical-scroll-proportion="0.5882353">
+ <state line="12" column="19" selection-start="357" selection-end="357" vertical-scroll-proportion="-9.333333">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/db/migrate/20120205080404_add_member_id_to_user.rb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/db/migrate/20120130034750_add_reset_code_to_users.rb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ <entry file="file://$PROJECT_DIR$/db/migrate/20120122061252_add_admin_to_users.rb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="2" column="58" selection-start="120" selection-end="120" vertical-scroll-proportion="0.10824742">
<folding />
</state>
</provider>
View
2 db/migrate/20120122061252_add_admin_to_users.rb
@@ -1,6 +1,6 @@
class AddAdminToUsers < ActiveRecord::Migration
def self.up
- add_column :users, :admin, :boolean, :default => 0
+ add_column :users, :admin, :boolean, :default => false
end
def self.down

0 comments on commit 9f4a3ab

Please sign in to comment.
Something went wrong with that request. Please try again.