forked from janpadrta/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
padrta
committed
Sep 27, 2016
1 parent
0d8ac72
commit 99b342e
Showing
20 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ | |
|
||
class House::Atreides < House | ||
|
||
def self.model_name | ||
House.model_name | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ | |
|
||
class House::Corrino < House | ||
|
||
def self.model_name | ||
House.model_name | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ | |
|
||
class House::Empire < House | ||
|
||
def self.model_name | ||
House.model_name | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ | |
|
||
class House::Harkonnen < House | ||
|
||
def self.model_name | ||
House.model_name | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ | |
|
||
class House::Renegat < House | ||
|
||
def self.model_name | ||
House.model_name | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ | |
|
||
class House::Titan < House | ||
|
||
def self.model_name | ||
House.model_name | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,8 @@ def self.vytvor | |
fields_count: 0 | ||
) | ||
end | ||
|
||
def fields_creation | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,8 @@ def self.vytvor | |
fields_count: 0 | ||
) | ||
end | ||
|
||
def fields_creation | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,8 @@ def self.vytvor | |
fields_count: 0 | ||
) | ||
end | ||
|
||
def fields_creation | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,8 @@ def self.vytvor | |
fields_count: 0 | ||
) | ||
end | ||
|
||
def fields_creation | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,8 @@ def self.vytvor | |
exp_bonus: 50 | ||
) | ||
end | ||
|
||
def fields_creation | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,8 @@ def self.vytvor | |
fields_count: 0 | ||
) | ||
end | ||
|
||
def fields_creation | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddUsernameToUsers < ActiveRecord::Migration[5.0] | ||
def change | ||
add_column :users, :username, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,3 +353,16 @@ | |
Planet::Titania.vytvor | ||
|
||
p 'Planet done' | ||
|
||
User.create(:username => 'Norma_Cenva', :name => 'Norma Cenva', :email => '[email protected]', :house_id => titan.id, :password => 'doktoros', :password_confirmation => 'doktoros', :admin => true) | ||
User.create(:username => 'Doktor', :name => 'Doktor', :email => '[email protected]', :house_id => titan.id, :password => 'Abcd1234', :password_confirmation => 'Abcd1234', :admin => true) | ||
User.create(:username => 'Gilbertus_Albans', :name => 'Gilbertus Albans', :email => '[email protected]', :house_id => titan.id, :password => 'Abcd1234', :password_confirmation => 'Abcd1234', :admin => true) | ||
# User.create(:username => 'Simi', :name => 'Simi', :email => '[email protected]', :house_id => titan.id, :password => 'Abcd1234', :password_confirmation => 'Abcd1234', :admin => true) | ||
# User.create(:username => 'minohimself', :name => 'minohimself', :email => '[email protected]', :house_id => titan.id, :password => 'Abcd1234', :password_confirmation => 'Abcd1234', :admin => true) | ||
puts 'User done' | ||
|
||
norma = User.find_by_username('Norma_Cenva') | ||
doktor = User.find_by_username('Doktor') | ||
gilbertus = User.find_by_username('Gilbertus_Albans') | ||
# simi = User.find_by_username('Simi') | ||
# mino = User.find_by_username('minohimself') |